diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-25 19:41:22 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:04 +0100 |
commit | 735c79a2edb3b31a35ed3e484744807bb626ab77 (patch) | |
tree | ef49989901e51dcb573ca7f612ff267820650481 /libmproxy/protocol/http2.py | |
parent | 4e9579e93eee4a156fa60c1d58dcc9b8c113d367 (diff) | |
download | mitmproxy-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.py | 13 |
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 |