From b4fab58c611bd0a7eb5c48c140709aa0ff725cf3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 13 Mar 2011 21:53:26 +1300 Subject: Indicate request and response replay status separately. --- libmproxy/console.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libmproxy/console.py b/libmproxy/console.py index c327692f..757f11c8 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -57,6 +57,8 @@ def format_flow(f, focus, extended=False, padding=2): if extended: txt.append(("highlight", utils.format_timestamp(f.request.timestamp))) txt.append(" ") + if f.request.is_replay(): + txt.append(("method", "[replay]")) txt.extend([ ("ack", "!") if f.intercepting and not f.request.acked else " ", ("method", f.request.method), @@ -77,16 +79,14 @@ def format_flow(f, focus, extended=False, padding=2): txt.append(("text", ts)) txt.append(" "*(padding+2)) met = "" - if f.request.is_replay(): - txt.append(("method", "[replay] ")) - elif f.modified(): - txt.append(("method", "[edited] ")) if f.response: txt.append( ("ack", "!") if f.intercepting and not f.response.acked else " " ) txt.append("<- ") + if f.response.is_replay(): + txt.append(("method", "[replay] ")) if f.response.code in [200, 304]: txt.append(("goodcode", str(f.response.code))) else: -- cgit v1.2.3