[web] fix timing display for keepalive connections

see https://discourse.mitmproxy.org/t/mitmweb-details-tab-timing/848/3
This commit is contained in:
Maximilian Hils 2018-02-05 13:52:52 +01:00 committed by GitHub
parent 05ae3460c0
commit de5dd19297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ export function TimeColumn({ flow }) {
return ( return (
<td className="col-time"> <td className="col-time">
{flow.response ? ( {flow.response ? (
formatTimeDelta(1000 * (flow.response.timestamp_end - flow.server_conn.timestamp_start)) formatTimeDelta(1000 * (flow.response.timestamp_end - flow.request.timestamp_start))
) : ( ) : (
'...' '...'
)} )}