aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-11-06 10:35:00 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-11-06 10:35:00 +1300
commit0fe83ce87bd1e3cf00fb06d2cc06e1bf3b0dbe85 (patch)
tree07dc49ceceb8de9e3c160300e20de935bc475939 /libmproxy
parente732771c1ca354ef7b895da4088e727573476e34 (diff)
downloadmitmproxy-0fe83ce87bd1e3cf00fb06d2cc06e1bf3b0dbe85.tar.gz
mitmproxy-0fe83ce87bd1e3cf00fb06d2cc06e1bf3b0dbe85.tar.bz2
mitmproxy-0fe83ce87bd1e3cf00fb06d2cc06e1bf3b0dbe85.zip
Fix bug in flow dumping, add unit test that should have caught this in the first place
Diffstat (limited to 'libmproxy')
-rw-r--r--libmproxy/dump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index 9fb0f001..4d899fe8 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -205,7 +205,7 @@ class DumpMaster(flow.FlowMaster):
elif self.o.flow_detail >= 3:
print >> self.outfile, str_request(f, self.showhost)
print >> self.outfile, self.indent(4, f.request.headers)
- if utils.isBin(f.request.content):
+ if f.request.content != http.CONTENT_MISSING and utils.isBin(f.request.content):
d = netlib.utils.hexdump(f.request.content)
d = "\n".join("%s\t%s %s"%i for i in d)
print >> self.outfile, self.indent(4, d)