diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-06-15 01:40:10 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-06-15 01:40:10 (GMT) |
commit | 6cd1954c5cff4b3722a183d13648c71b18259778 (patch) | |
tree | 83a581787ff6cc96456bd621f29c80b8c6d958db /Lib/test/test_httpservers.py | |
parent | 13266fb5c8e4a58c33209f8d97f86469c3245d94 (diff) | |
parent | 73b8b1cdb8beb44069aad44c5358aca4904fc103 (diff) | |
download | cpython-6cd1954c5cff4b3722a183d13648c71b18259778.zip cpython-6cd1954c5cff4b3722a183d13648c71b18259778.tar.gz cpython-6cd1954c5cff4b3722a183d13648c71b18259778.tar.bz2 |
merge 3.2 (#21766)
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r-- | Lib/test/test_httpservers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py index 4e62963..47c6796 100644 --- a/Lib/test/test_httpservers.py +++ b/Lib/test/test_httpservers.py @@ -464,6 +464,11 @@ class CGIHTTPServerTestCase(BaseTestCase): (res.read(), res.getheader('Content-type'), res.status)) self.assertEqual(os.environ['SERVER_SOFTWARE'], signature) + def test_urlquote_decoding_in_cgi_check(self): + res = self.request('/cgi-bin%2ffile1.py') + self.assertEqual((b'Hello World\n', 'text/html', 200), + (res.read(), res.getheader('Content-type'), res.status)) + class SocketlessRequestHandler(SimpleHTTPRequestHandler): def __init__(self): |