aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r--libmproxy/utils.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py
index 5b1c41f1..a697a637 100644
--- a/libmproxy/utils.py
+++ b/libmproxy/utils.py
@@ -173,14 +173,3 @@ def safe_subn(pattern, repl, target, *args, **kwargs):
need a better solution that is aware of the actual content ecoding.
"""
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)
-
- if length == 4740180:
- raise ValueError("Probably not the correct length bytes: %s" % rfile.peek(20))
-
- raw_frame = rfile.safe_read(9 + length)
- return raw_frame