diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 00:10:01 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-04 00:10:01 +0200 |
commit | 649e63ff3c868397f493e1dabdc1c63d572aedd8 (patch) | |
tree | d95b10ebd35576f620d08eeab472e7d4fbf878db /examples/redirect_requests.py | |
parent | b0cfeff06d9dd99a16dfae19c5df3c73c5864fb9 (diff) | |
download | mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.tar.gz mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.tar.bz2 mitmproxy-649e63ff3c868397f493e1dabdc1c63d572aedd8.zip |
fix some leftovers
Diffstat (limited to 'examples/redirect_requests.py')
-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"] |