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):
|
def _find_pretty_view(self, content, hdrItems, txt):
|
||||||
ctype = None
|
ctype = None
|
||||||
for i in hdrItems:
|
for i in hdrItems:
|
||||||
if i[0] == "content-type":
|
if i[0].lower() == "content-type":
|
||||||
ctype = i[1]
|
ctype = i[1]
|
||||||
break
|
break
|
||||||
if ctype and "x-www-form-urlencoded" in ctype:
|
if ctype and "x-www-form-urlencoded" in ctype:
|
||||||
|
|
Loading…
Reference in New Issue