diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-01 01:34:30 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-06-01 01:34:30 +0900 |
| commit | 2799c9f0ccee2e4a453ef1df5e3fa3d8547fae9e (patch) | |
| tree | 58290fef2b76d97496731839d28fd812f13d48f2 /test/RequestTest.cc | |
| parent | 74a049ddfc57ea0566c43fba1efdcfb0f5fcb53e (diff) | |
Only percent-encode non-printable ASCII chars(0x00-0x1f), non-ASCII
chars(>0x7f), ' ', '"', '<' and '>' for URIs supplied by user and
remote server(usually Location header field).
Diffstat (limited to 'test/RequestTest.cc')
| -rw-r--r-- | test/RequestTest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/RequestTest.cc b/test/RequestTest.cc index 3427ee57..3b361532 100644 --- a/test/RequestTest.cc +++ b/test/RequestTest.cc @@ -102,13 +102,13 @@ void RequestTest::testSetUri17() CPPUNIT_ASSERT(v); CPPUNIT_ASSERT_EQUAL(std::string("http"), req.getProtocol()); CPPUNIT_ASSERT_EQUAL(std::string("host"), req.getHost()); - CPPUNIT_ASSERT_EQUAL(std::string("/file%3Cwith%252%20%20space"), + CPPUNIT_ASSERT_EQUAL(std::string("/file%3Cwith%2%20%20space"), req.getDir()); - CPPUNIT_ASSERT_EQUAL(std::string("file%20with%20space;param%25"), + CPPUNIT_ASSERT_EQUAL(std::string("file%20with%20space;param%"), req.getFile()); CPPUNIT_ASSERT_EQUAL(std::string("?a=/?"), req.getQuery()); - CPPUNIT_ASSERT_EQUAL(std::string("http://host:80/file%3Cwith%252%20%20space" - "/file%20with%20space;param%25?a=/?"), + CPPUNIT_ASSERT_EQUAL(std::string("http://host:80/file%3Cwith%2%20%20space" + "/file%20with%20space;param%?a=/?"), req.getCurrentUri()); CPPUNIT_ASSERT_EQUAL(std::string("http://host:80/file<with%2 %20space" "/file with space;param%?a=/?"), |
