diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-25 12:13:33 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-25 12:13:33 +0000 |
| commit | ea49e9c297ade01cad641f468271e7e0444fe2b3 (patch) | |
| tree | c1f6d1a48a9de14fcf35820671ac99857c0061af /src/HttpHeader.h | |
| parent | 3a897a4f32c6e40c6c1107a98620e8bcba91c3ec (diff) | |
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made strings which are only used in comparison plain C strings.
* src/HttpHeader.cc
* src/HttpHeader.h
* src/Netrc.cc
* src/Netrc.h
* test/HttpHeaderTest.cc
Diffstat (limited to 'src/HttpHeader.h')
| -rw-r--r-- | src/HttpHeader.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/HttpHeader.h b/src/HttpHeader.h index 6eb6ad1d..d0d60c93 100644 --- a/src/HttpHeader.h +++ b/src/HttpHeader.h @@ -122,20 +122,12 @@ public: static const std::string SET_COOKIE; - static const std::string CHUNKED; - - static const std::string GZIP; - - static const std::string DEFLATE; - static const std::string CONTENT_TYPE; static const std::string RETRY_AFTER; static const std::string CONNECTION; - static const std::string CLOSE; - static const std::string CONTENT_LENGTH; static const std::string CONTENT_RANGE; @@ -144,7 +136,15 @@ public: static const std::string ACCEPT_ENCODING; - static const std::string HTTP_1_1; + static const char HTTP_1_1[]; + + static const char CLOSE[]; + + static const char CHUNKED[]; + + static const char GZIP[]; + + static const char DEFLATE[]; }; typedef SharedHandle<HttpHeader> HttpHeaderHandle; |
