diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:40:22 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-09-26 17:40:22 +0200 |
commit | fa722e02901c11f0d52176177d1032e9ab0cae1f (patch) | |
tree | b1620f744a0947ed9bd735563fc59a8a7b17161f /libpathod/pathod.py | |
parent | a163dba582e6aac103262bac50fcd390ebce0c72 (diff) | |
download | mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.tar.gz mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.tar.bz2 mitmproxy-fa722e02901c11f0d52176177d1032e9ab0cae1f.zip |
adjust to netlib changes
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r-- | libpathod/pathod.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 95fc6af2..55e75074 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -41,7 +41,7 @@ class SSLOptions(object): ssl_options=tcp.SSL_DEFAULT_OPTIONS, ciphers=None, certs=None, - alpn_select=http.ALPN_PROTO_H2, + alpn_select=b'h2', ): self.confdir = confdir self.cn = cn @@ -140,7 +140,7 @@ class PathodHandler(tcp.BaseHandler): path = req.path http_version = req.http_version headers = req.headers - body = req.body + body = req.content clientcert = None if self.clientcert: @@ -259,7 +259,7 @@ class PathodHandler(tcp.BaseHandler): return alp = self.get_alpn_proto_negotiated() - if alp == http.ALPN_PROTO_H2: + if alp == b'h2': self.protocol = protocols.http2.HTTP2Protocol(self) self.use_http2 = True |