diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 39fc4cc22..a5e45c264 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,7 @@ Release History Unreleased: mitmproxy next ========================== +* Fix query parameters in asgiapp addon (@jpstotz) * --- TODO: add new PRs above this line --- * ... and various other fixes, documentation improvements, dependency version bumps, etc. diff --git a/mitmproxy/addons/asgiapp.py b/mitmproxy/addons/asgiapp.py index ac4f935c8..5edb6ac84 100644 --- a/mitmproxy/addons/asgiapp.py +++ b/mitmproxy/addons/asgiapp.py @@ -55,7 +55,7 @@ def make_scope(flow: http.HTTPFlow) -> dict: # (byte string) – URL portion after the ?, percent-encoded. query_string: bytes if len(quoted_path) > 1: - query_string = quoted_path[1].encode() + query_string = urllib.parse.unquote(quoted_path[1]).encode() else: query_string = b""