aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r--libmproxy/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py
index 299e8749..5b1c41f1 100644
--- a/libmproxy/utils.py
+++ b/libmproxy/utils.py
@@ -174,6 +174,7 @@ def safe_subn(pattern, repl, target, *args, **kwargs):
"""
return re.subn(str(pattern), str(repl), target, *args, **kwargs)
+
def http2_read_frame(rfile):
field = rfile.peek(3)
length = int(field.encode('hex'), 16)