http2: fix PingFrame again

This commit is contained in:
Thomas Kriechbaumer 2015-09-03 13:52:40 +02:00
parent 29ae2bbf91
commit b4d6f2e12b
1 changed files with 2 additions and 2 deletions

View File

@ -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")