aboutsummaryrefslogtreecommitdiffstats
path: root/examples/redirect_requests.py
diff options
context:
space:
mode:
authorClemens <cle1000.cb@gmail.com>2016-07-19 12:32:36 +0200
committerClemens <cle1000.cb@gmail.com>2016-07-19 12:32:36 +0200
commit698fb11132598a38851383f805dde5ca4d2a046d (patch)
tree95fc0184735722ccd6e4697f884496d6852e13f6 /examples/redirect_requests.py
parent48728af43ad746d70ef3e251dc28b75028dea1e6 (diff)
parent18dd84b9081fb5552d5b5b2560405496445e2110 (diff)
downloadmitmproxy-698fb11132598a38851383f805dde5ca4d2a046d.tar.gz
mitmproxy-698fb11132598a38851383f805dde5ca4d2a046d.tar.bz2
mitmproxy-698fb11132598a38851383f805dde5ca4d2a046d.zip
Merge remote-tracking branch 'origin/master' into flow_editing
Diffstat (limited to 'examples/redirect_requests.py')
-rw-r--r--examples/redirect_requests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/redirect_requests.py b/examples/redirect_requests.py
index af2aa907..36594bcd 100644
--- a/examples/redirect_requests.py
+++ b/examples/redirect_requests.py
@@ -5,7 +5,7 @@ from mitmproxy.models import HTTPResponse
from netlib.http import Headers
-def request(context, flow):
+def request(flow):
# pretty_host takes the "Host" header of the request into account,
# which is useful in transparent mode where we usually only have the IP
# otherwise.