improve http2 header parsing

This commit is contained in:
Thomas Kriechbaumer 2016-01-24 23:53:23 +01:00
parent a99ef584ad
commit f49c1cd1c5

View File

@ -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: