diff options
| -rw-r--r-- | mitmproxy/addons/clientplayback.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py index c56c0e74..13fbfebb 100644 --- a/mitmproxy/addons/clientplayback.py +++ b/mitmproxy/addons/clientplayback.py @@ -203,7 +203,7 @@ class ClientPlayback:              # https://github.com/mitmproxy/mitmproxy/issues/2197              if hf.request.http_version == "HTTP/2.0":                  hf.request.http_version = "HTTP/1.1" -                host = hf.request.headers.pop(":authority") +                host = hf.request.headers.pop(":authority", hf.request.pretty_host)                  hf.request.headers.insert(0, "host", host)              self.q.put(hf)          ctx.master.addons.trigger("update", lst)  | 
