diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-12-11 22:52:17 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-12-12 00:08:29 +0100 |
commit | d854e08653ccee12119266e2cc3f5d6c279341e5 (patch) | |
tree | a58d465ea62fdb9665389b39c284d689f2b94e78 /web/src/js/components/FlowTable/FlowColumns.jsx | |
parent | d1c7b203f08d4b1e1ee3c7a50762a4f08843feef (diff) | |
download | mitmproxy-d854e08653ccee12119266e2cc3f5d6c279341e5.tar.gz mitmproxy-d854e08653ccee12119266e2cc3f5d6c279341e5.tar.bz2 mitmproxy-d854e08653ccee12119266e2cc3f5d6c279341e5.zip |
[web] various fixes
Diffstat (limited to 'web/src/js/components/FlowTable/FlowColumns.jsx')
-rw-r--r-- | web/src/js/components/FlowTable/FlowColumns.jsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/web/src/js/components/FlowTable/FlowColumns.jsx b/web/src/js/components/FlowTable/FlowColumns.jsx index 0ff80453..02a4fba1 100644 --- a/web/src/js/components/FlowTable/FlowColumns.jsx +++ b/web/src/js/components/FlowTable/FlowColumns.jsx @@ -54,6 +54,15 @@ IconColumn.getIcon = flow => { } export function PathColumn({ flow }) { + + let err; + if(flow.error){ + if (flow.error.msg === "Connection killed"){ + err = <i className="fa fa-fw fa-times pull-right"></i> + } else { + err = <i className="fa fa-fw fa-exclamation pull-right"></i> + } + } return ( <td className="col-path"> {flow.request.is_replay && ( @@ -62,6 +71,7 @@ export function PathColumn({ flow }) { {flow.intercepted && ( <i className="fa fa-fw fa-pause pull-right"></i> )} + {err} {RequestUtils.pretty_url(flow.request)} </td> ) @@ -109,7 +119,7 @@ export function TimeColumn({ flow }) { return ( <td className="col-time"> {flow.response ? ( - formatTimeDelta(1000 * (flow.response.timestamp_end - flow.request.timestamp_start)) + formatTimeDelta(1000 * (flow.response.timestamp_end - flow.server_conn.timestamp_start)) ) : ( '...' )} |