aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-03-24 19:24:28 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-03-24 21:27:14 +0100
commitef9f0e22ea31745a91a131c193051d8df7a9eccf (patch)
tree8b2a0edc262efee5847317eca0e372e12f4cef0b /test
parent335861f490d7717c5b1bcc570a23d7fcf82520bc (diff)
downloadmitmproxy-ef9f0e22ea31745a91a131c193051d8df7a9eccf.tar.gz
mitmproxy-ef9f0e22ea31745a91a131c193051d8df7a9eccf.tar.bz2
mitmproxy-ef9f0e22ea31745a91a131c193051d8df7a9eccf.zip
bump h2
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/proxy/protocol/test_http2.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/test/mitmproxy/proxy/protocol/test_http2.py b/test/mitmproxy/proxy/protocol/test_http2.py
index 1f695cc5..23027c24 100644
--- a/test/mitmproxy/proxy/protocol/test_http2.py
+++ b/test/mitmproxy/proxy/protocol/test_http2.py
@@ -36,7 +36,11 @@ class _Http2ServerBase(net_tservers.ServerTestBase):
class handler(mitmproxy.net.tcp.BaseHandler):
def handle(self):
- h2_conn = h2.connection.H2Connection(client_side=False, header_encoding=False)
+ config = h2.config.H2Configuration(
+ client_side=False,
+ validate_outbound_headers=False,
+ validate_inbound_headers=False)
+ h2_conn = h2.connection.H2Connection(config)
preamble = self.rfile.read(24)
h2_conn.initiate_connection()
@@ -138,7 +142,11 @@ class _Http2TestBase:
client.convert_to_ssl(alpn_protos=[b'h2'])
- h2_conn = h2.connection.H2Connection(client_side=True, header_encoding=False)
+ config = h2.config.H2Configuration(
+ client_side=True,
+ validate_outbound_headers=False,
+ validate_inbound_headers=False)
+ h2_conn = h2.connection.H2Connection(config)
h2_conn.initiate_connection()
client.wfile.write(h2_conn.data_to_send())
client.wfile.flush()
@@ -756,7 +764,7 @@ class TestMaxConcurrentStreams(_Http2Test):
@classmethod
def setup_class(cls):
_Http2TestBase.setup_class()
- _Http2ServerBase.setup_class(h2_server_settings={h2.settings.MAX_CONCURRENT_STREAMS: 2})
+ _Http2ServerBase.setup_class(h2_server_settings={h2.settings.SettingCodes.MAX_CONCURRENT_STREAMS: 2})
@classmethod
def handle_server_event(cls, event, h2_conn, rfile, wfile):