diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 00:45:35 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-08 00:45:35 +0100 |
commit | b0477fd8c9f6b1aa80e7e3ebcbe03a204f3ab2c2 (patch) | |
tree | 3606a2c579f93e958deeee538cb97ae2e637cab7 /libmproxy/dump.py | |
parent | 370a0f91c19dedb32e08b6eb0852223de85cb740 (diff) | |
download | mitmproxy-b0477fd8c9f6b1aa80e7e3ebcbe03a204f3ab2c2.tar.gz mitmproxy-b0477fd8c9f6b1aa80e7e3ebcbe03a204f3ab2c2.tar.bz2 mitmproxy-b0477fd8c9f6b1aa80e7e3ebcbe03a204f3ab2c2.zip |
http2: indicate http version in the ui
Diffstat (limited to 'libmproxy/dump.py')
-rw-r--r-- | libmproxy/dump.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libmproxy/dump.py b/libmproxy/dump.py index 95be2d27..6dab2ddc 100644 --- a/libmproxy/dump.py +++ b/libmproxy/dump.py @@ -247,11 +247,16 @@ class DumpMaster(flow.FlowMaster): url = flow.request.url url = click.style(url, bold=True) - line = "{stickycookie}{client} {method} {url}".format( + httpversion = "" + if flow.request.http_version not in ("HTTP/1.1", "HTTP/1.0"): + httpversion = " " + flow.request.http_version # We hide "normal" HTTP 1. + + line = "{stickycookie}{client} {method} {url}{httpversion}".format( stickycookie=stickycookie, client=client, method=method, - url=url + url=url, + httpversion=httpversion ) self.echo(line) |