aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/dump.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-09-15 12:38:49 +1200
committerAldo Cortesi <aldo@nullcube.com>2014-09-15 12:38:49 +1200
commit9f8d2eea64d4611c1e2f7e7043fe6d3ef9a6aa40 (patch)
treefba4f09a7591f0613a983b3de5d37b18766e75be /libmproxy/dump.py
parent563078df2473a2a65c1a408e4cb27e79c95b7c87 (diff)
parent5a59fef57fdf2207e1bd5930391b88608ae9c0ec (diff)
downloadmitmproxy-9f8d2eea64d4611c1e2f7e7043fe6d3ef9a6aa40.tar.gz
mitmproxy-9f8d2eea64d4611c1e2f7e7043fe6d3ef9a6aa40.tar.bz2
mitmproxy-9f8d2eea64d4611c1e2f7e7043fe6d3ef9a6aa40.zip
Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r--libmproxy/dump.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index d3f81780..0349a3b5 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -197,7 +197,9 @@ class DumpMaster(flow.FlowMaster):
print >> self.outfile, str_request(f, self.showhost)
print >> self.outfile, self.indent(4, f.request.headers)
if utils.isBin(f.request.content):
- print >> self.outfile, self.indent(4, netlib.utils.hexdump(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)
elif f.request.content:
print >> self.outfile, self.indent(4, f.request.content)
print >> self.outfile