aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/har_dump.py
diff options
context:
space:
mode:
authorJesson Soto Ventura <jessonsotoventura@gmail.com>2019-09-24 23:40:28 -0400
committerGitHub <noreply@github.com>2019-09-24 23:40:28 -0400
commitb7e259029466fc7ac8e2dbd0f8d10086ef688952 (patch)
tree6c62e628d34c837c18538aad98a10de4e1d46332 /examples/complex/har_dump.py
parentc02d515b2aada5aa63439c6f2d71ae86a7c4dc6b (diff)
parenta08c22dcdd5535dcef453f7c1c2445c11f35beda (diff)
downloadmitmproxy-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.py5
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.