aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-02-14 14:33:02 +0100
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-02-14 14:33:02 +0100
commitc394ee31fbbe92b8faff8c07eb4e01911f79bb8c (patch)
tree22998670c87637f5af0f5e60439f9377dd2a72bd
parent5968983b4cbc5747d4f1fa38e777f6c80d413508 (diff)
parent7c17c6ddbe12707795ea99b4f35df23cad576899 (diff)
downloadmitmproxy-c394ee31fbbe92b8faff8c07eb4e01911f79bb8c.tar.gz
mitmproxy-c394ee31fbbe92b8faff8c07eb4e01911f79bb8c.tar.bz2
mitmproxy-c394ee31fbbe92b8faff8c07eb4e01911f79bb8c.zip
Merge pull request #933 from mitmproxy/http2-log
Print HTTP2 frames to debug log
-rw-r--r--libmproxy/protocol/http2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py
index 04ff8bf6..a65f7659 100644
--- a/libmproxy/protocol/http2.py
+++ b/libmproxy/protocol/http2.py
@@ -131,6 +131,12 @@ class Http2Layer(Layer):
raise NotImplementedError()
def _handle_event(self, event, source_conn, other_conn, is_server):
+ self.log(
+ "HTTP2 Event from {}".format("server" if is_server else "client"),
+ "debug",
+ [repr(event)]
+ )
+
if hasattr(event, 'stream_id'):
if is_server and event.stream_id % 2 == 1:
eid = self.server_to_client_stream_ids[event.stream_id]