diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 18:45:22 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-16 18:45:22 +0200 |
commit | 0af060897854e0e0fc8207af02d22bec9eacab12 (patch) | |
tree | 8f5206386bb481a813f1b6891c30d5d2d33924ba /examples | |
parent | 436a9ea8398e25709f139fde609aa74e8fb3f3f8 (diff) | |
download | mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.tar.gz mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.tar.bz2 mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.zip |
adjust to netlib changes
Diffstat (limited to 'examples')
-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()] |