diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 01:23:59 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 01:23:59 +0200 |
commit | b13acd7956f2e09bf5f9001f8f55d018a381f6c2 (patch) | |
tree | 0cb1a99bcd453c435886a0bfd516520e1cd13612 /libmproxy/dump.py | |
parent | a978c6b9cee134d01f84216f3fbcf1ae9303d965 (diff) | |
download | mitmproxy-b13acd7956f2e09bf5f9001f8f55d018a381f6c2.tar.gz mitmproxy-b13acd7956f2e09bf5f9001f8f55d018a381f6c2.tar.bz2 mitmproxy-b13acd7956f2e09bf5f9001f8f55d018a381f6c2.zip |
adjust to netlib request changes + docs
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r-- | libmproxy/dump.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 3915d4c8..43af953c 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -241,7 +241,11 @@ class DumpMaster(flow.FlowMaster): DELETE="red" ).get(method.upper(), "magenta") method = click.style(method, fg=method_color, bold=True) - url = click.style(flow.request.pretty_url(self.showhost), bold=True) + if self.showhost: + url = flow.request.pretty_url + else: + url = flow.request.url + url = click.style(url, bold=True) line = "{stickycookie}{client} {method} {url}".format( stickycookie=stickycookie, |