diff options
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r-- | tests/test_parser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py index 0a68a66..aacef26 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -608,6 +608,11 @@ class TestHTTPRequestParserIntegration(unittest.TestCase): parser.path.encode("latin-1").decode("utf-8"), b"/foo/a++/\xc3\xa4=&a:int".decode("utf-8"), ) + # parser.request_uri should preserve the % escape sequences and the query string. + self.assertEqual( + parser.request_uri, + "/foo/a+%2B%2F%C3%A4%3D%26a%3Aint?d=b+%2B%2F%3D%26b%3Aint&c+%2B%2F%3D%26c%3Aint=6", + ) self.assertEqual( parser.query, "d=b+%2B%2F%3D%26b%3Aint&c+%2B%2F%3D%26c%3Aint=6" ) |