From b5bbeb0ff3d13abec23d3884cb1449bfdb1b2047 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 17 Jul 2016 11:11:22 +1200 Subject: dumper: correctly detect request replay Fixes #1361 --- mitmproxy/builtins/dumper.py | 6 ++++-- 1 file 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, -- cgit v1.2.3