diff options
author | Jesson Soto Ventura <jessonsotoventura@gmail.com> | 2019-09-24 23:40:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-24 23:40:28 -0400 |
commit | b7e259029466fc7ac8e2dbd0f8d10086ef688952 (patch) | |
tree | 6c62e628d34c837c18538aad98a10de4e1d46332 /examples/complex/har_dump.py | |
parent | c02d515b2aada5aa63439c6f2d71ae86a7c4dc6b (diff) | |
parent | a08c22dcdd5535dcef453f7c1c2445c11f35beda (diff) | |
download | mitmproxy-b7e259029466fc7ac8e2dbd0f8d10086ef688952.tar.gz mitmproxy-b7e259029466fc7ac8e2dbd0f8d10086ef688952.tar.bz2 mitmproxy-b7e259029466fc7ac8e2dbd0f8d10086ef688952.zip |
Merge branch 'master' into tabular
Diffstat (limited to 'examples/complex/har_dump.py')
-rw-r--r-- | examples/complex/har_dump.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/complex/har_dump.py b/examples/complex/har_dump.py index 33a2f79f..414b4f61 100644 --- a/examples/complex/har_dump.py +++ b/examples/complex/har_dump.py @@ -87,7 +87,10 @@ def response(flow): } # HAR timings are integers in ms, so we re-encode the raw timings to that format. - timings = dict([(k, int(1000 * v)) for k, v in timings_raw.items()]) + timings = { + k: int(1000 * v) if v != -1 else -1 + for k, v in timings_raw.items() + } # full_time is the sum of all timings. # Timings set to -1 will be ignored as per spec. |