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 /libmproxy/web/app.py | |
parent | 436a9ea8398e25709f139fde609aa74e8fb3f3f8 (diff) | |
download | mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.tar.gz mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.tar.bz2 mitmproxy-0af060897854e0e0fc8207af02d22bec9eacab12.zip |
adjust to netlib changes
Diffstat (limited to 'libmproxy/web/app.py')
-rw-r--r-- | libmproxy/web/app.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py index 2517e7ad..8eee6dce 100644 --- a/libmproxy/web/app.py +++ b/libmproxy/web/app.py @@ -128,12 +128,10 @@ class FlowHandler(RequestHandler): if a == "request": request = flow.request for k, v in b.iteritems(): - if k in ["method", "scheme", "host", "path"]: + if k in ["method", "scheme", "host", "path", "httpversion"]: setattr(request, k, str(v)) elif k == "port": request.port = int(v) - elif k == "httpversion": - request.httpversion = tuple(int(x) for x in v) elif k == "headers": request.headers.load_state(v) else: @@ -147,7 +145,7 @@ class FlowHandler(RequestHandler): elif k == "code": response.code = int(v) elif k == "httpversion": - response.httpversion = tuple(int(x) for x in v) + response.httpversion = str(v) elif k == "headers": response.headers.load_state(v) else: |