mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Correctly detect urlencoded data
This broke when we introduced case preservation for headers.
This commit is contained in:
parent
6df4be93e3
commit
669ce8ee7c
@ -967,7 +967,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
def _find_pretty_view(self, content, hdrItems, txt):
|
||||
ctype = None
|
||||
for i in hdrItems:
|
||||
if i[0] == "content-type":
|
||||
if i[0].lower() == "content-type":
|
||||
ctype = i[1]
|
||||
break
|
||||
if ctype and "x-www-form-urlencoded" in ctype:
|
||||
|
Loading…
Reference in New Issue
Block a user