mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
asgiapp.py: fix query parameters
This commit is contained in:
parent
f97826f624
commit
dde27ba247
@ -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.
|
||||
|
@ -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""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user