aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorJesson Soto Ventura <jessonsotoventura@gmail.com>2019-11-19 22:39:00 -0500
committerJesson Soto Ventura <jessonsotoventura@gmail.com>2019-11-19 22:39:00 -0500
commitdc2d8f50caa47c4da2dc3193b01a544dad1f3a57 (patch)
treeb162e41dfbd097a9bfb424fac5b29b7d10ec26f5 /mitmproxy
parent698f7e2e177baf313e6af62ec0f79a26693e430b (diff)
downloadmitmproxy-dc2d8f50caa47c4da2dc3193b01a544dad1f3a57.tar.gz
mitmproxy-dc2d8f50caa47c4da2dc3193b01a544dad1f3a57.tar.bz2
mitmproxy-dc2d8f50caa47c4da2dc3193b01a544dad1f3a57.zip
added column for mark and replay
Diffstat (limited to 'mitmproxy')
-rw-r--r--mitmproxy/tools/console/common.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/mitmproxy/tools/console/common.py b/mitmproxy/tools/console/common.py
index 3a5b4aeb..0cebd9a8 100644
--- a/mitmproxy/tools/console/common.py
+++ b/mitmproxy/tools/console/common.py
@@ -369,18 +369,15 @@ def raw_format_table(f):
req = []
cursor = [' ', 'focus']
- if f.get('resp_is_replay', False):
- cursor[0] = SYMBOL_REPLAY
- cursor[1] = 'replay'
- if f['marked']:
- if cursor[0] == ' ':
- cursor[0] = SYMBOL_MARK
- cursor[1] = 'mark'
if f['focus']:
cursor[0] = '>'
-
req.append(fcol(*cursor))
+ if f.get('resp_is_replay', False) or f.get('req_is_replay', False):
+ req.append(fcol(SYMBOL_REPLAY, 'replay'))
+ if f['marked']:
+ req.append(fcol(SYMBOL_MARK, 'mark'))
+
if f["two_line"]:
req.append(TruncatedText(f["req_url"], colorize_url(f["req_url"]), 'left'))
pile.append(urwid.Columns(req, dividechars=1))