diff options
author | RamiBerm <54766858+RamiBerm@users.noreply.github.com> | 2019-09-03 17:19:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 17:19:50 +0300 |
commit | 4ce5e1386c7d065f4c4f8b68aa57b0e18d6945ca (patch) | |
tree | d3c73271b3221a0a7bf14a781e1b44435b03d08b /examples/addons/commands-flows.py | |
parent | 0b0b4ccba6ac8a85e5ab4555af3df9dc80a81380 (diff) | |
download | mitmproxy-4ce5e1386c7d065f4c4f8b68aa57b0e18d6945ca.tar.gz mitmproxy-4ce5e1386c7d065f4c4f8b68aa57b0e18d6945ca.tar.bz2 mitmproxy-4ce5e1386c7d065f4c4f8b68aa57b0e18d6945ca.zip |
Updated har_dump,py timings dictionary function
the HAR file spec (http://www.softwareishard.com/blog/har-12-spec/#timings) states that timings that do not apply for a certain requests should be set to -1, this example may set -1000 as a timings value for certain requests.
This ends up producing invalid HAR files in many cases.
My proposed fix is to assign -1 into the dic and only multiply by 1000 for other values
Diffstat (limited to 'examples/addons/commands-flows.py')
0 files changed, 0 insertions, 0 deletions