Correctly detect urlencoded data

This broke when we introduced case preservation for headers.
This commit is contained in:
Aldo Cortesi 2011-07-17 15:31:58 +12:00
parent 6df4be93e3
commit 669ce8ee7c

View File

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