diff options
author | Aldo Cortesi <aldo@corte.si> | 2016-12-16 10:04:12 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-16 10:04:12 +1300 |
commit | 6b5673e84911f3e2b1599c22c9b4f482a55b9ef1 (patch) | |
tree | a6f54fdb9d9be4d6b061a3b30069b330d9325fd5 /web/src/js/components/FlowTable/FlowColumns.jsx | |
parent | 78c78ce651478072f3b0a4a7d18f2a8de3147d33 (diff) | |
parent | d854e08653ccee12119266e2cc3f5d6c279341e5 (diff) | |
download | mitmproxy-6b5673e84911f3e2b1599c22c9b4f482a55b9ef1.tar.gz mitmproxy-6b5673e84911f3e2b1599c22c9b4f482a55b9ef1.tar.bz2 mitmproxy-6b5673e84911f3e2b1599c22c9b4f482a55b9ef1.zip |
Merge pull request #1845 from mhils/mitmweb-improvements
Mitmweb Improvements
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)) ) : ( '...' )} |