diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/redirect_requests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/redirect_requests.py b/examples/redirect_requests.py index a9a7e795..530da200 100644 --- a/examples/redirect_requests.py +++ b/examples/redirect_requests.py @@ -12,7 +12,7 @@ def request(context, flow): [1, 1], 200, "OK", ODictCaseless([["Content-Type", "text/html"]]), "helloworld") - flow.request.reply(resp) + flow.reply(resp) if flow.request.get_host(hostheader=True).endswith("example.org"): flow.request.host = "mitmproxy.org" flow.request.headers["Host"] = ["mitmproxy.org"] |