diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-16 13:52:41 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-06-16 14:53:41 +0200 |
commit | 408b4ffef0a784bea7ec08c252e757bca6e28134 (patch) | |
tree | f7694eb9f7f875d72355b9f7c342910174574fc0 /libpathod/pathod.py | |
parent | ec68aa303e89398ba34bbe01f3fbd1ac1fc441f3 (diff) | |
download | mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.gz mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.tar.bz2 mitmproxy-408b4ffef0a784bea7ec08c252e757bca6e28134.zip |
http2: implement Headers for request & response
improve test coverage
fix super ctor call
fix legacy httpversion
simpliy SSLInfo without ALPN
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index b6f04b92..212abbdc 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -234,6 +234,7 @@ class PathodHandler(tcp.BaseHandler): method = headers[':method'] path = headers[':path'] headers = odict.ODict(headers) + httpversion = "" else: req = self.read_http_request(lg) if 'next_handle' in req: @@ -246,6 +247,7 @@ class PathodHandler(tcp.BaseHandler): path = req['path'] headers = req['headers'] body = req['body'] + httpversion = req['httpversion'] clientcert = None if self.clientcert: @@ -265,7 +267,7 @@ class PathodHandler(tcp.BaseHandler): path=path, method=method, headers=headers.lst, - # httpversion=httpversion, + httpversion=httpversion, sni=self.sni, remote_address=self.address(), clientcert=clientcert, @@ -375,7 +377,8 @@ class PathodHandler(tcp.BaseHandler): method=method, path=path, headers=headers, - body=body) + body=body, + httpversion=httpversion) def make_http_error_response(self, reason, body=None): """ |