aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 14:26:36 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 14:26:36 +0200
commit3a229f60e35a05b0358ef6bf6c81a3a42461c4a2 (patch)
treeb1971b884af2ffef0325836621fcb011e703647f /libmproxy/protocol/http.py
parent1f6d05f89fada5fe360aa79abfa80a3c91ce54da (diff)
downloadmitmproxy-3a229f60e35a05b0358ef6bf6c81a3a42461c4a2.tar.gz
mitmproxy-3a229f60e35a05b0358ef6bf6c81a3a42461c4a2.tar.bz2
mitmproxy-3a229f60e35a05b0358ef6bf6c81a3a42461c4a2.zip
http2: fix ping response
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index dbf46973..cf8d86c3 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -244,7 +244,7 @@ class Http2Layer(_HttpLayer):
return
if isinstance(frame, PingFrame):
# 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
self.log("Unexpected HTTP2 frame from client: %s" % frame.human_readable(), "info")
@@ -263,7 +263,7 @@ class Http2Layer(_HttpLayer):
return
if isinstance(frame, PingFrame):
# 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
self.log("Unexpected HTTP2 frame from server: %s" % frame.human_readable(), "info")