diff options
Diffstat (limited to 'icespider/unittests')
-rw-r--r-- | icespider/unittests/testFcgi.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/icespider/unittests/testFcgi.cpp b/icespider/unittests/testFcgi.cpp index 789e6fa..cc9aa44 100644 --- a/icespider/unittests/testFcgi.cpp +++ b/icespider/unittests/testFcgi.cpp @@ -386,8 +386,8 @@ BOOST_AUTO_TEST_CASE(cookies) BOOST_REQUIRE_EQUAL(1234, *r.IceSpider::IHttpRequest::getCookieParam<Ice::Int>("valueA")); BOOST_REQUIRE_EQUAL("Something with spaces.", *r.IceSpider::IHttpRequest::getCookieParam<std::string>("value B")); BOOST_REQUIRE(!r.IceSpider::IHttpRequest::getCookieParam<Ice::Int>("notAThing")); - r.setCookie("some int.", 1234, "www.com"s, "/dir"s, true, 1476142378); - BOOST_REQUIRE_EQUAL("Set-Cookie: some+int%2e=1234; expires=Mon, 10 Oct 2016 23:32:58 GMT; domain=www.com; " + r.setCookie("some int?[0]", 1234, "www.com"s, "/dir"s, true, 1476142378); + BOOST_REQUIRE_EQUAL("Set-Cookie: some+int%3f%5b0%5d=1234; expires=Mon, 10 Oct 2016 23:32:58 GMT; domain=www.com; " "path=/dir; secure; samesite=strict\r\n", r.out.str()); } |