aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2016-01-25 19:41:22 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2016-02-04 09:52:04 +0100
commit735c79a2edb3b31a35ed3e484744807bb626ab77 (patch)
treeef49989901e51dcb573ca7f612ff267820650481 /libmproxy/protocol/http2.py
parent4e9579e93eee4a156fa60c1d58dcc9b8c113d367 (diff)
downloadmitmproxy-735c79a2edb3b31a35ed3e484744807bb626ab77.tar.gz
mitmproxy-735c79a2edb3b31a35ed3e484744807bb626ab77.tar.bz2
mitmproxy-735c79a2edb3b31a35ed3e484744807bb626ab77.zip
increase coverage
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