diff options
author | Maximilian Hils <git@maximilianhils.com> | 2019-11-15 17:24:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 17:24:59 +0100 |
commit | 50443df3404e660984c5bbfd999dc96d0bc9b1b2 (patch) | |
tree | 58a1636284b7a933b7c483531723f780f77e6efc /examples/complex/har_dump.py | |
parent | 3eebfed79f4d54840a054c2dc5061e155c416d3e (diff) | |
parent | f6f9eb2c4e022cd44ccc39b3f61fdf31cbfea793 (diff) | |
download | mitmproxy-50443df3404e660984c5bbfd999dc96d0bc9b1b2.tar.gz mitmproxy-50443df3404e660984c5bbfd999dc96d0bc9b1b2.tar.bz2 mitmproxy-50443df3404e660984c5bbfd999dc96d0bc9b1b2.zip |
Merge branch 'master' into master
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..e3cea9fd 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. |