diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-20 10:26:43 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-08-20 10:27:06 +0200 |
commit | 16f697f68a7f94375bd1435f5eec6e00911b7019 (patch) | |
tree | 9402fe72436585d158e4c7ce7e577adbf25861b1 /netlib/http/http2/protocol.py | |
parent | 94b7beae2a818ac873fb63991ab5237de1c104dd (diff) | |
download | mitmproxy-16f697f68a7f94375bd1435f5eec6e00911b7019.tar.gz mitmproxy-16f697f68a7f94375bd1435f5eec6e00911b7019.tar.bz2 mitmproxy-16f697f68a7f94375bd1435f5eec6e00911b7019.zip |
http2: disable features we do not support yet
Diffstat (limited to 'netlib/http/http2/protocol.py')
-rw-r--r-- | netlib/http/http2/protocol.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/netlib/http/http2/protocol.py b/netlib/http/http2/protocol.py index bf0b364f..cf46a130 100644 --- a/netlib/http/http2/protocol.py +++ b/netlib/http/http2/protocol.py @@ -225,7 +225,11 @@ class HTTP2Protocol(semantics.ProtocolMixin): magic = self.tcp_handler.rfile.safe_read(magic_length) assert magic == self.CLIENT_CONNECTION_PREFACE - self.send_frame(frame.SettingsFrame(state=self), hide=True) + frm = frame.SettingsFrame(state=self, settings={ + frame.SettingsFrame.SETTINGS.SETTINGS_ENABLE_PUSH: 0, + frame.SettingsFrame.SETTINGS.SETTINGS_MAX_CONCURRENT_STREAMS: 1, + }) + self.send_frame(frm, hide=True) self._receive_settings(hide=True) def perform_client_connection_preface(self, force=False): |