summaryrefslogtreecommitdiff
path: root/src/HttpHeader.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-25 12:13:33 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-25 12:13:33 +0000
commitea49e9c297ade01cad641f468271e7e0444fe2b3 (patch)
treec1f6d1a48a9de14fcf35820671ac99857c0061af /src/HttpHeader.cc
parent3a897a4f32c6e40c6c1107a98620e8bcba91c3ec (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.cc')
-rw-r--r--src/HttpHeader.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc
index 2de6db94..9e191ab1 100644
--- a/src/HttpHeader.cc
+++ b/src/HttpHeader.cc
@@ -52,20 +52,12 @@ const std::string HttpHeader::CONTENT_DISPOSITION("Content-Disposition");
const std::string HttpHeader::SET_COOKIE("Set-Cookie");
-const std::string HttpHeader::CHUNKED("chunked");
-
-const std::string HttpHeader::GZIP("gzip");
-
-const std::string HttpHeader::DEFLATE("deflate");
-
const std::string HttpHeader::CONTENT_TYPE("Content-Type");
const std::string HttpHeader::RETRY_AFTER("Retry-After");
const std::string HttpHeader::CONNECTION("Connection");
-const std::string HttpHeader::CLOSE("close");
-
const std::string HttpHeader::CONTENT_LENGTH("Content-Length");
const std::string HttpHeader::CONTENT_RANGE("Content-Range");
@@ -74,7 +66,11 @@ const std::string HttpHeader::LAST_MODIFIED("Last-Modified");
const std::string HttpHeader::ACCEPT_ENCODING("Accept-Encoding");
-const std::string HttpHeader::HTTP_1_1("HTTP/1.1");
+const char HttpHeader::HTTP_1_1[] = "HTTP/1.1";
+const char HttpHeader::CLOSE[] = "close";
+const char HttpHeader::CHUNKED[] = "chunked";
+const char HttpHeader::GZIP[] = "gzip";
+const char HttpHeader::DEFLATE[] = "deflate";
HttpHeader::HttpHeader() {}
HttpHeader::~HttpHeader() {}