diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 20:24:48 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 20:24:48 +0200 |
commit | 8fbed971ae4a84e875f1072805b17cc7ada39fad (patch) | |
tree | 09c31384b2b1d22680534af8ff40ae724a13e05b /examples/har_extractor.py | |
parent | ee6969c1fac20d592e0775bfe074b4bcfcf83461 (diff) | |
parent | 0af060897854e0e0fc8207af02d22bec9eacab12 (diff) | |
download | mitmproxy-8fbed971ae4a84e875f1072805b17cc7ada39fad.tar.gz mitmproxy-8fbed971ae4a84e875f1072805b17cc7ada39fad.tar.bz2 mitmproxy-8fbed971ae4a84e875f1072805b17cc7ada39fad.zip |
Merge pull request #768 from mitmproxy/netlib-http1-refactor
Adjust to netlib changes
Diffstat (limited to 'examples/har_extractor.py')
-rw-r--r-- | examples/har_extractor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/har_extractor.py b/examples/har_extractor.py index bc784dc4..f16f1909 100644 --- a/examples/har_extractor.py +++ b/examples/har_extractor.py @@ -128,7 +128,7 @@ def response(context, flow): request_query_string = [{"name": k, "value": v} for k, v in flow.request.get_query()] - request_http_version = ".".join([str(v) for v in flow.request.httpversion]) + request_http_version = flow.request.httpversion # Cookies are shaped as tuples by MITMProxy. request_cookies = [{"name": k.strip(), "value": v[0]} for k, v in (flow.request.get_cookies() or {}).iteritems()] |