Issue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8

Patch by Anthony Sottile.
This commit is contained in:
Martin Panter 2016-04-17 02:17:03 +00:00
parent 06172e7bd4
commit 50dd1f7dd6
4 changed files with 29 additions and 1 deletions

View file

@ -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()