summaryrefslogtreecommitdiffstats
path: root/Lib/wsgiref/simple_server.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-17 02:36:50 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-04-17 02:36:50 (GMT)
commitd77133b4cef1d547d0c326e557339a2eb6c0bf95 (patch)
treec68daccb233710f17d21af5f113b7f526f77f6ff /Lib/wsgiref/simple_server.py
parent528619b6c3a9cdf987397eacb4fbc36dec7c6433 (diff)
parent50dd1f7dd68ed2f526adfebd5caa342e26da4517 (diff)
downloadcpython-d77133b4cef1d547d0c326e557339a2eb6c0bf95.zip
cpython-d77133b4cef1d547d0c326e557339a2eb6c0bf95.tar.gz
cpython-d77133b4cef1d547d0c326e557339a2eb6c0bf95.tar.bz2
Issue #26717: Merge wsgiref fix from 3.5
Diffstat (limited to 'Lib/wsgiref/simple_server.py')
-rw-r--r--Lib/wsgiref/simple_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/wsgiref/simple_server.py b/Lib/wsgiref/simple_server.py
index 1807c66..f71563a 100644
--- a/Lib/wsgiref/simple_server.py
+++ b/Lib/wsgiref/simple_server.py
@@ -82,7 +82,7 @@ class WSGIRequestHandler(BaseHTTPRequestHandler):
else:
path,query = self.path,''
- env['PATH_INFO'] = urllib.parse.unquote_to_bytes(path).decode('iso-8859-1')
+ env['PATH_INFO'] = urllib.parse.unquote(path, 'iso-8859-1')
env['QUERY_STRING'] = query
host = self.address_string()