aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/http/http1/protocol.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-15 17:49:59 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-08-15 17:49:59 +0200
commitb7e6e1c9b2c57270ee0c49af9235a2b119600056 (patch)
tree5fda64b766f35ce3ab8379683423d992b03ecdf8 /netlib/http/http1/protocol.py
parentf3a611339148a5a3de141ff1234ec9018ab20896 (diff)
downloadmitmproxy-b7e6e1c9b2c57270ee0c49af9235a2b119600056.tar.gz
mitmproxy-b7e6e1c9b2c57270ee0c49af9235a2b119600056.tar.bz2
mitmproxy-b7e6e1c9b2c57270ee0c49af9235a2b119600056.zip
add HTTP/1.1 ALPN version string
Diffstat (limited to 'netlib/http/http1/protocol.py')
-rw-r--r--netlib/http/http1/protocol.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http/http1/protocol.py b/netlib/http/http1/protocol.py
index 8eeb7744..dc33a8af 100644
--- a/netlib/http/http1/protocol.py
+++ b/netlib/http/http1/protocol.py
@@ -17,6 +17,8 @@ class TCPHandler(object):
class HTTP1Protocol(semantics.ProtocolMixin):
+ ALPN_PROTO_HTTP1 = 'http/1.1'
+
def __init__(self, tcp_handler=None, rfile=None, wfile=None):
self.tcp_handler = tcp_handler or TCPHandler(rfile, wfile)