mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
add HTTP/1.1 ALPN version string
This commit is contained in:
parent
f3a6113391
commit
b7e6e1c9b2
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user