This commit is contained in:
Ujjwal Verma 2017-06-19 03:18:38 +05:30
parent 6d284f5a2e
commit 62403a5bd8

View File

@ -162,6 +162,11 @@ class Master:
f.response = None f.response = None
f.error = None f.error = None
if f.request.http_version == "HTTP/2.0":
f.request.http_version = "HTTP/1.1"
host = f.request.headers.pop(":authority")
f.request.headers.insert(0, "host", host)
rt = http_replay.RequestReplayThread( rt = http_replay.RequestReplayThread(
self.server.config, self.server.config,
f, f,