aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2019-11-20 17:28:27 +0100
committerGitHub <noreply@github.com>2019-11-20 17:28:27 +0100
commit3a7ca3e1e7cc4e0d1d8a6702cbf443f7cddaf00f (patch)
treeb6d2d5c09f0f991c28615695584a73fff2caed1f /mitmproxy
parent223335111d3923ef6be8e01259b315ddf390c45c (diff)
parentdc2d8f50caa47c4da2dc3193b01a544dad1f3a57 (diff)
downloadmitmproxy-3a7ca3e1e7cc4e0d1d8a6702cbf443f7cddaf00f.tar.gz
mitmproxy-3a7ca3e1e7cc4e0d1d8a6702cbf443f7cddaf00f.tar.bz2
mitmproxy-3a7ca3e1e7cc4e0d1d8a6702cbf443f7cddaf00f.zip
Merge pull request #3717 from Jessonsotoventura/replay
Added Replay to new table UI
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))