diff options
-rw-r--r-- | libmproxy/protocol/http2.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index ff1726ae..03408142 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: |