From f49c1cd1c5771aea8ab64bd93619e3b8f0729253 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 24 Jan 2016 23:53:23 +0100 Subject: improve http2 header parsing --- libmproxy/protocol/http2.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmproxy') 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: -- cgit v1.2.3