aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http2.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/protocol/http2.py')
-rw-r--r--libmproxy/protocol/http2.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py
index 03408142..54e7572e 100644
--- a/libmproxy/protocol/http2.py
+++ b/libmproxy/protocol/http2.py
@@ -249,12 +249,13 @@ class Http2SingleStreamLayer(_HttpTransmissionLayer, threading.Thread):
if path == '*' or path.startswith("/"):
form_in = "relative"
- elif method == 'CONNECT':
- form_in = "authority"
- if ":" in authority:
- host, port = authority.split(":", 1)
- else:
- host = authority
+ elif method == 'CONNECT': # pragma: no cover
+ # form_in = "authority"
+ # if ":" in authority:
+ # host, port = authority.split(":", 1)
+ # else:
+ # host = authority
+ raise NotImplementedError("CONNECT over HTTP/2 is not implemented.")
else:
form_in = "absolute"
# FIXME: verify if path or :host contains what we need