diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-03 14:01:40 +1100 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-04 08:13:56 +1100 |
commit | 8cec187f9a606eba362b437eeab407cefe8600c6 (patch) | |
tree | 9782d6ff6433122e52db7b1e32eb83ac24825dd6 /pathod | |
parent | 1ae73b915783350105897d1d875b7b1f2979ffe0 (diff) | |
download | mitmproxy-8cec187f9a606eba362b437eeab407cefe8600c6.tar.gz mitmproxy-8cec187f9a606eba362b437eeab407cefe8600c6.tar.bz2 mitmproxy-8cec187f9a606eba362b437eeab407cefe8600c6.zip |
http2: frames don't have a human_readable method
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/protocols/http2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pathod/protocols/http2.py b/pathod/protocols/http2.py index 7b162664..78fe6111 100644 --- a/pathod/protocols/http2.py +++ b/pathod/protocols/http2.py @@ -250,13 +250,13 @@ class HTTP2StateProtocol(object): self.tcp_handler.wfile.write(raw_bytes) self.tcp_handler.wfile.flush() if not hide and self.dump_frames: # pragma no cover - print(frm.human_readable(">>")) + print(">> " + repr(frm)) def read_frame(self, hide=False): while True: frm = http2.parse_frame(*http2.read_raw_frame(self.tcp_handler.rfile)) if not hide and self.dump_frames: # pragma no cover - print(frm.human_readable("<<")) + print("<< " + repr(frm)) if isinstance(frm, hyperframe.frame.PingFrame): raw_bytes = hyperframe.frame.PingFrame(flags=['ACK'], payload=frm.payload).serialize() @@ -341,7 +341,7 @@ class HTTP2StateProtocol(object): if self.dump_frames: # pragma no cover for frm in frms: - print(frm.human_readable(">>")) + print(">> ", repr(frm)) return [frm.serialize() for frm in frms] @@ -359,7 +359,7 @@ class HTTP2StateProtocol(object): if self.dump_frames: # pragma no cover for frm in frms: - print(frm.human_readable(">>")) + print(">> ", repr(frm)) return [frm.serialize() for frm in frms] |