summaryrefslogtreecommitdiff
path: root/test/HttpHeaderTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-23 21:46:01 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-23 21:46:01 +0900
commit54665ff4093f4517104fe36c1b58f9a339710adf (patch)
treec946194194f84032d0ace485d113828404364820 /test/HttpHeaderTest.cc
parentdd7014a6121c0985e94451e2492a112402501335 (diff)
Removed static std::string constant in HttpHeader
This change also removes inspection of Proxy-Connection header field when checking whether the remote endpoint keeps connection open.
Diffstat (limited to 'test/HttpHeaderTest.cc')
-rw-r--r--test/HttpHeaderTest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/HttpHeaderTest.cc b/test/HttpHeaderTest.cc
index 1899a09f..056d4f10 100644
--- a/test/HttpHeaderTest.cc
+++ b/test/HttpHeaderTest.cc
@@ -138,7 +138,7 @@ void HttpHeaderTest::testClearField()
{
HttpHeader h;
h.setStatusCode(200);
- h.setVersion(HttpHeader::HTTP_1_1);
+ h.setVersion("HTTP/1.1");
h.put(HttpHeader::LINK, "Bar");
CPPUNIT_ASSERT_EQUAL(std::string("Bar"), h.find(HttpHeader::LINK));
@@ -147,7 +147,7 @@ void HttpHeaderTest::testClearField()
CPPUNIT_ASSERT_EQUAL(std::string(""), h.find(HttpHeader::LINK));
CPPUNIT_ASSERT_EQUAL(200, h.getStatusCode());
- CPPUNIT_ASSERT_EQUAL(std::string(HttpHeader::HTTP_1_1), h.getVersion());
+ CPPUNIT_ASSERT_EQUAL(std::string("HTTP/1.1"), h.getVersion());
}
void HttpHeaderTest::testFieldContains()