diff options
-rw-r--r-- | mitmproxy/master.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mitmproxy/master.py b/mitmproxy/master.py index b17f7e5d..9e3550da 100644 --- a/mitmproxy/master.py +++ b/mitmproxy/master.py @@ -162,6 +162,11 @@ class Master: f.response = 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( self.server.config, f, |