aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 13:52:40 +0200
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2015-09-03 13:55:13 +0200
commitb4d6f2e12b031ed1fa95b6a029d11dfa9f52d4e9 (patch)
treec830d9fe3943781e339e009465334b2aa6160983 /libmproxy/protocol/http.py
parent29ae2bbf911db16c695eccbef682320f6b15f769 (diff)
downloadmitmproxy-b4d6f2e12b031ed1fa95b6a029d11dfa9f52d4e9.tar.gz
mitmproxy-b4d6f2e12b031ed1fa95b6a029d11dfa9f52d4e9.tar.bz2
mitmproxy-b4d6f2e12b031ed1fa95b6a029d11dfa9f52d4e9.zip
http2: fix PingFrame again
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 b37ff7cf..b345ee06 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -239,7 +239,7 @@ class Http2Layer(_HttpLayer):
return
if isinstance(frame, PingFrame):
# respond with pong
- self.server_conn.send(PingFrame(flags=frame.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: %s" % frame.human_readable(), "info")
@@ -251,7 +251,7 @@ class Http2Layer(_HttpLayer):
return
if isinstance(frame, PingFrame):
# respond with pong
- self.client_conn.send(PingFrame(flags=frame.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: %s" % frame.human_readable(), "info")