diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-09-03 21:22:55 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2015-09-03 21:24:07 +0200 |
commit | 3ebe5a5147db20036d0762b92898f313b4d2f8d8 (patch) | |
tree | 5a5dfe46f350a937f571be99b6e22aba313c3d91 /netlib/http/http2/protocol.py | |
parent | 53abf5f4d7c1e6f0712c6473904e5c1a58db0bb9 (diff) | |
download | mitmproxy-3ebe5a5147db20036d0762b92898f313b4d2f8d8.tar.gz mitmproxy-3ebe5a5147db20036d0762b92898f313b4d2f8d8.tar.bz2 mitmproxy-3ebe5a5147db20036d0762b92898f313b4d2f8d8.zip |
http2: do net let Settings frames escape
Diffstat (limited to 'netlib/http/http2/protocol.py')
-rw-r--r-- | netlib/http/http2/protocol.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http/http2/protocol.py b/netlib/http/http2/protocol.py index 2fbe7705..4328ebdd 100644 --- a/netlib/http/http2/protocol.py +++ b/netlib/http/http2/protocol.py @@ -285,6 +285,8 @@ class HTTP2Protocol(semantics.ProtocolMixin): return True def _handle_unexpected_frame(self, frm): + if isinstance(frm, frame.SettingsFrame): + return if self.unhandled_frame_cb: self.unhandled_frame_cb(frm) |