summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorShane Hathaway <shane@willowrise.com>2021-05-11 08:42:05 -0600
committerShane Hathaway <shane@willowrise.com>2021-05-11 08:42:05 -0600
commit22120803fed3bffc61c85c1b1acef8c2d68e620e (patch)
tree26bec8e1e7c4f6bfc90232138c7e4939f80ddb21 /tests/test_parser.py
parent4b6b5832f3a30d82dc8cb359cf04d2a8edf6712b (diff)
downloadwaitress-22120803fed3bffc61c85c1b1acef8c2d68e620e.tar.gz
Add REMOTE_URI to the WSGI environ.
CHANGES.txt entry included.
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py5
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"
)