summaryrefslogtreecommitdiff
path: root/icespider/unittests
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-06-17 00:18:15 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-06-17 00:45:52 +0100
commit8848e2592ba044a7470ad3da0724a169f0c62ca5 (patch)
treeac3ef2cc11361e31de36ca514b73b335bad5df98 /icespider/unittests
parentSlicer 1.10 compat fix (diff)
downloadicespider-8848e2592ba044a7470ad3da0724a169f0c62ca5.tar.bz2
icespider-8848e2592ba044a7470ad3da0724a169f0c62ca5.tar.xz
icespider-8848e2592ba044a7470ad3da0724a169f0c62ca5.zip
xwwwFormUrlEncoded improvements
Match chars stated in rfc, constexpr lookups for read and write, standardized iterator output.
Diffstat (limited to 'icespider/unittests')
-rw-r--r--icespider/unittests/testFcgi.cpp4
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());
}