mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 23:09:44 +00:00
Merge pull request #3627 from RamiBerm/patch-1
Updated har_dump,py timings dictionary function
This commit is contained in:
commit
ddaf5a1f1b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user