aboutsummaryrefslogtreecommitdiffstats
path: root/examples/change_upstream_proxy.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-07-07 18:37:33 -0700
committerMaximilian Hils <git@maximilianhils.com>2016-07-07 20:14:52 -0700
commitc048ae1d5b652ad4778917e624ace217e1ecfd91 (patch)
tree1c650c871df749f8e77d70e74366ebe599d7e0b4 /examples/change_upstream_proxy.py
parent7a5b21556b7c707ed3da8d6fa3ece8119ea38630 (diff)
downloadmitmproxy-c048ae1d5b652ad4778917e624ace217e1ecfd91.tar.gz
mitmproxy-c048ae1d5b652ad4778917e624ace217e1ecfd91.tar.bz2
mitmproxy-c048ae1d5b652ad4778917e624ace217e1ecfd91.zip
remove context from all scripts
Diffstat (limited to 'examples/change_upstream_proxy.py')
-rw-r--r--examples/change_upstream_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/change_upstream_proxy.py b/examples/change_upstream_proxy.py
index 34a6eece..49d5379f 100644
--- a/examples/change_upstream_proxy.py
+++ b/examples/change_upstream_proxy.py
@@ -14,7 +14,7 @@ def proxy_address(flow):
return ("localhost", 8081)
-def request(context, flow):
+def request(flow):
if flow.request.method == "CONNECT":
# If the decision is done by domain, one could also modify the server address here.
# We do it after CONNECT here to have the request data available as well.