diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-17 11:11:22 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-17 11:11:22 +1200 |
commit | b5bbeb0ff3d13abec23d3884cb1449bfdb1b2047 (patch) | |
tree | b7769949dc5b6930489f4850bccbcc991fb63a7a | |
parent | ca7ca8ec248d2a213622a9d2dca1a192f65365c2 (diff) | |
download | mitmproxy-b5bbeb0ff3d13abec23d3884cb1449bfdb1b2047.tar.gz mitmproxy-b5bbeb0ff3d13abec23d3884cb1449bfdb1b2047.tar.bz2 mitmproxy-b5bbeb0ff3d13abec23d3884cb1449bfdb1b2047.zip |
dumper: correctly detect request replay
Fixes #1361
-rw-r--r-- | mitmproxy/builtins/dumper.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mitmproxy/builtins/dumper.py b/mitmproxy/builtins/dumper.py index 8ee1e93d..239630fb 100644 --- a/mitmproxy/builtins/dumper.py +++ b/mitmproxy/builtins/dumper.py @@ -118,8 +118,10 @@ class Dumper(): ), bold=True ) - else: + elif flow.request.is_replay: client = click.style("[replay]", fg="yellow", bold=True) + else: + client = "" method = flow.request.method method_color = dict( @@ -183,7 +185,7 @@ class Dumper(): size = human.pretty_size(len(flow.response.raw_content)) size = click.style(size, bold=True) - arrows = click.style("<<", bold=True) + arrows = click.style(" <<", bold=True) line = "{replay} {arrows} {code} {reason} {size}".format( replay=replay, |