aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2011-03-13 21:53:26 +1300
committerAldo Cortesi <aldo@nullcube.com>2011-03-13 21:53:26 +1300
commitb4fab58c611bd0a7eb5c48c140709aa0ff725cf3 (patch)
tree121dfbdf1572e0f13915b99a7fd375a32ab5f62a
parent6cb40d03f4d9f735f383effa4209b4764bb13955 (diff)
downloadmitmproxy-b4fab58c611bd0a7eb5c48c140709aa0ff725cf3.tar.gz
mitmproxy-b4fab58c611bd0a7eb5c48c140709aa0ff725cf3.tar.bz2
mitmproxy-b4fab58c611bd0a7eb5c48c140709aa0ff725cf3.zip
Indicate request and response replay status separately.
-rw-r--r--libmproxy/console.py8
1 files 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: