aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols/http2.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-04 10:54:15 +1100
committerGitHub <noreply@github.com>2016-10-04 10:54:15 +1100
commit3d5b81199431f3232ebf6050f1b033e61d1172f4 (patch)
tree0d111125733f9211f170f345f506738bf4ba6804 /pathod/protocols/http2.py
parentb0add569b988e9f1e319b9577fbd8e076ac5bd23 (diff)
parent2bd868662937b504cccd825e9e24e3cb6a142708 (diff)
downloadmitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.tar.gz
mitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.tar.bz2
mitmproxy-3d5b81199431f3232ebf6050f1b033e61d1172f4.zip
Merge pull request #1592 from cortesi/ws
docs and API-related cleanups
Diffstat (limited to 'pathod/protocols/http2.py')
-rw-r--r--pathod/protocols/http2.py8
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]