diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-24 23:53:23 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:03 +0100 |
commit | f49c1cd1c5771aea8ab64bd93619e3b8f0729253 (patch) | |
tree | 559c20d870c5a73f2df51053f3d16abb8a8aea42 /libmproxy/protocol | |
parent | a99ef584ad184658199d6ba83c73ed173f8ac0d0 (diff) | |
download | mitmproxy-f49c1cd1c5771aea8ab64bd93619e3b8f0729253.tar.gz mitmproxy-f49c1cd1c5771aea8ab64bd93619e3b8f0729253.tar.bz2 mitmproxy-f49c1cd1c5771aea8ab64bd93619e3b8f0729253.zip |
improve http2 header parsing
Diffstat (limited to 'libmproxy/protocol')
-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: |