aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-17 15:25:28 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-17 15:25:28 +0200
commit6661ad3143254f2d616e625e6a9092974cc60842 (patch)
tree6c4327f2bbbaf24e41202394f7d2c775e845d410 /libpathod/pathod.py
parent8fa01f41a6c821d29e595f89613d3bb1b5aabb58 (diff)
downloadmitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.tar.gz
mitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.tar.bz2
mitmproxy-6661ad3143254f2d616e625e6a9092974cc60842.zip
code -> status_code, httpversion -> http_version
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r--libpathod/pathod.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index 7436b9b1..95fc6af2 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -134,11 +134,11 @@ class PathodHandler(tcp.BaseHandler):
return None, dict(type="error", msg=s)
if req.method == 'CONNECT':
- return self.protocol.handle_http_connect([req.host, req.port, req.httpversion], lg)
+ return self.protocol.handle_http_connect([req.host, req.port, req.http_version], lg)
method = req.method
path = req.path
- httpversion = req.httpversion
+ http_version = req.http_version
headers = req.headers
body = req.body
@@ -160,7 +160,7 @@ class PathodHandler(tcp.BaseHandler):
path=path,
method=method,
headers=headers.fields,
- httpversion=httpversion,
+ http_version=http_version,
sni=self.sni,
remote_address=self.address(),
clientcert=clientcert,