Skip to content
Myr

WSGI 'PATH_INFO' should be URL unquoted (#1391)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 0af6d9a · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:httpx/_transports/wsgi.py+2 added-1 removed
1import io2import itertools3import typing4from urllib.parse import unquote56import httpcore78
74 unmodified lines
83 "wsgi.multiprocess": False,84 "wsgi.run_once": False,85 "REQUEST_METHOD": method.decode(),86 "SCRIPT_NAME": self.script_name,86 "PATH_INFO": path.decode("ascii"),87 "PATH_INFO": unquote(path.decode("ascii")),88 "QUERY_STRING": query.decode("ascii"),89 "SERVER_NAME": host.decode("ascii"),90 "SERVER_PORT": str(port),91 "REMOTE_ADDR": self.remote_addr,
38 unmodified lines