diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-05-14 21:24:10 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-05-14 21:24:10 +0900 |
| commit | 286991e17d75507aff06622256097e3e8d00d470 (patch) | |
| tree | bd2a9dd52f89e252e2bc5ac239f3f647d08cfca1 /test | |
| parent | 3026b18ecdb3dfd61fcb34d305d965e4944ac110 (diff) | |
Strip DQUOTE from cookie-value and updated doc.
Diffstat (limited to 'test')
| -rw-r--r-- | test/CookieHelperTest.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CookieHelperTest.cc b/test/CookieHelperTest.cc index 35d81a1c..dd39f502 100644 --- a/test/CookieHelperTest.cc +++ b/test/CookieHelperTest.cc @@ -213,6 +213,13 @@ void CookieHelperTest::testParse() CPPUNIT_ASSERT_EQUAL(std::string("192.168.0.1"), c.getDomain()); CPPUNIT_ASSERT(c.getHostOnly()); } + { + // DQUOTE around cookie-value + std::string str = "id=\"foo\";"; + Cookie c; + CPPUNIT_ASSERT(cookie::parse(c, str, "localhost", "/", creationDate)); + CPPUNIT_ASSERT_EQUAL(std::string("foo"), c.getValue()); + } } void CookieHelperTest::testReverseDomainLevel() |
