aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 21:23:19 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 21:23:19 +0200
commit47ab7f04eaa85dda7be524b946c22222b2a6de91 (patch)
tree787ffd8d2864ecceec9cc292bbb230819b2a969c /libmproxy/protocol/http.py
parent14457f29b3d89e234d0791c4980e5cf9514185dd (diff)
downloadmitmproxy-47ab7f04eaa85dda7be524b946c22222b2a6de91.tar.gz
mitmproxy-47ab7f04eaa85dda7be524b946c22222b2a6de91.tar.bz2
mitmproxy-47ab7f04eaa85dda7be524b946c22222b2a6de91.zip
http2: Ping frames are handled in netlib
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index f2265c34..74c93e16 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -232,10 +232,6 @@ class Http2Layer(_HttpLayer):
# relay it to the server.
self.server_conn.send(frame.to_bytes())
return
- if isinstance(frame, PingFrame):
- # respond with pong
- self.client_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
- return
self.log("Unexpected HTTP2 frame from client: %s" % frame.human_readable(), "info")
def handle_unexpected_frame_from_server(self, frame):
@@ -251,10 +247,6 @@ class Http2Layer(_HttpLayer):
# relay it to the client.
self.client_conn.send(frame.to_bytes())
return
- if isinstance(frame, PingFrame):
- # respond with pong
- self.server_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
- return
self.log("Unexpected HTTP2 frame from server: %s" % frame.human_readable(), "info")