diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index ff1726aed..034081426 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -260,6 +260,9 @@ class Http2SingleStreamLayer(_HttpTransmissionLayer, threading.Thread): # FIXME: verify if path or :host contains what we need scheme, host, port, _ = utils.parse_url(path) + if authority: + host, port = authority.split(':') + if host is None: host = 'localhost' if port is None: