mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Fixes #2197
This commit is contained in:
parent
6d284f5a2e
commit
62403a5bd8
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user