aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/dump.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-26 17:41:14 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-26 17:41:14 +0200
commit1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d (patch)
tree6d295eafd96ee2a39522f1eda3b2ee95e76a1482 /libmproxy/dump.py
parentb13acd7956f2e09bf5f9001f8f55d018a381f6c2 (diff)
downloadmitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.gz
mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.tar.bz2
mitmproxy-1b6ea5caf3ab7c30cc4a822b81ad8288efbae70d.zip
adjust to netlib response changes + docs
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r--libmproxy/dump.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py
index 43af953c..d2b130f1 100644
--- a/libmproxy/dump.py
+++ b/libmproxy/dump.py
@@ -174,15 +174,15 @@ class DumpMaster(flow.FlowMaster):
)
self.echo(headers, indent=4)
if self.o.flow_detail >= 3:
- if message.body == CONTENT_MISSING:
+ if message.content == CONTENT_MISSING:
self.echo("(content missing)", indent=4)
- elif message.body:
+ elif message.content:
self.echo("")
try:
type, lines = contentviews.get_content_view(
contentviews.get("Auto"),
- message.body,
+ message.content,
headers=message.headers
)
except ContentViewException:
@@ -190,7 +190,7 @@ class DumpMaster(flow.FlowMaster):
self.add_event(s, "debug")
type, lines = contentviews.get_content_view(
contentviews.get("Raw"),
- message.body,
+ message.content,
headers=message.headers
)
@@ -270,7 +270,7 @@ class DumpMaster(flow.FlowMaster):
elif 400 <= code < 600:
code_color = "red"
code = click.style(str(code), fg=code_color, bold=True, blink=(code == 418))
- msg = click.style(flow.response.msg, fg=code_color, bold=True)
+ reason = click.style(flow.response.reason, fg=code_color, bold=True)
if flow.response.content == CONTENT_MISSING:
size = "(content missing)"
@@ -280,11 +280,11 @@ class DumpMaster(flow.FlowMaster):
arrows = click.style("<<", bold=True)
- line = "{replay} {arrows} {code} {msg} {size}".format(
+ line = "{replay} {arrows} {code} {reason} {size}".format(
replay=replay,
arrows=arrows,
code=code,
- msg=msg,
+ reason=reason,
size=size
)
self.echo(line)