Skip to content

Commit

Permalink
Refs adamchainz#376: Switch to rawPath in get_environ_v2()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmcnulty authored May 5, 2023
1 parent 91cdf83 commit aaecfba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apig_wsgi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def get_environ_v2(
"CONTENT_LENGTH": str(len(body)),
"HTTP": "on",
"HTTP_COOKIE": ";".join(event.get("cookies", ())),
"PATH_INFO": urllib.parse.unquote(http["path"], encoding="iso-8859-1"),
"PATH_INFO": urllib.parse.unquote(event["rawPath"], encoding="iso-8859-1"),
"QUERY_STRING": event["rawQueryString"],
"REMOTE_ADDR": http["sourceIp"],
"REQUEST_METHOD": http["method"],
Expand Down

0 comments on commit aaecfba

Please sign in to comment.