From 0af060897854e0e0fc8207af02d22bec9eacab12 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 16 Sep 2015 18:45:22 +0200 Subject: adjust to netlib changes --- examples/har_extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/har_extractor.py') 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()] -- cgit v1.2.3