summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-06-15 01:40:10 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-06-15 01:40:10 (GMT)
commit6cd1954c5cff4b3722a183d13648c71b18259778 (patch)
tree83a581787ff6cc96456bd621f29c80b8c6d958db /Lib/http
parent13266fb5c8e4a58c33209f8d97f86469c3245d94 (diff)
parent73b8b1cdb8beb44069aad44c5358aca4904fc103 (diff)
downloadcpython-6cd1954c5cff4b3722a183d13648c71b18259778.zip
cpython-6cd1954c5cff4b3722a183d13648c71b18259778.tar.gz
cpython-6cd1954c5cff4b3722a183d13648c71b18259778.tar.bz2
merge 3.2 (#21766)
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index dab1eb6..6a56539 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -971,7 +971,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
(and the next character is a '/' or the end of the string).
"""
- collapsed_path = _url_collapse_path(self.path)
+ collapsed_path = _url_collapse_path(urllib.parse.unquote(self.path))
dir_sep = collapsed_path.find('/', 1)
head, tail = collapsed_path[:dir_sep], collapsed_path[dir_sep+1:]
if head in self.cgi_directories: