mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #26717: Stop encoding Latin-1-ized WSGI paths with UTF-8
Patch by Anthony Sottile.
This commit is contained in:
parent
06172e7bd4
commit
50dd1f7dd6
4 changed files with 29 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue