mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Merge branch 'master' of https://github.com/mitmproxy/mitmproxy
This commit is contained in:
commit
8da683a638
@ -234,7 +234,7 @@ class Http2Layer(_HttpLayer):
|
|||||||
return
|
return
|
||||||
if isinstance(frame, PingFrame):
|
if isinstance(frame, PingFrame):
|
||||||
# respond with pong
|
# respond with pong
|
||||||
self.server_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
|
self.client_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
|
||||||
return
|
return
|
||||||
self.log("Unexpected HTTP2 frame from client: %s" % frame.human_readable(), "info")
|
self.log("Unexpected HTTP2 frame from client: %s" % frame.human_readable(), "info")
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ class Http2Layer(_HttpLayer):
|
|||||||
return
|
return
|
||||||
if isinstance(frame, PingFrame):
|
if isinstance(frame, PingFrame):
|
||||||
# respond with pong
|
# respond with pong
|
||||||
self.client_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
|
self.server_conn.send(PingFrame(flags=Frame.FLAG_ACK, payload=frame.payload).to_bytes())
|
||||||
return
|
return
|
||||||
self.log("Unexpected HTTP2 frame from server: %s" % frame.human_readable(), "info")
|
self.log("Unexpected HTTP2 frame from server: %s" % frame.human_readable(), "info")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user