asgiapp.py: fix query parameters

This commit is contained in:
Jan Peter Stotz 2020-11-04 14:20:01 +01:00
parent f97826f624
commit dde27ba247
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View File

@ -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""