diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-07-08 20:11:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-08 20:11:12 -0700 |
| commit | 15c10d49f6b020c5b913ae5b5e8c4b923a507a47 (patch) | |
| tree | b13eb4f3ec88fa90b515edcf4323363124dcd995 /examples/change_upstream_proxy.py | |
| parent | f7639e077ab10dc8e7f180f44b531b9ad35c060b (diff) | |
| parent | 5d2b7c52f9c33e84be5c4330b09b0f2a5ad869e2 (diff) | |
| download | mitmproxy-15c10d49f6b020c5b913ae5b5e8c4b923a507a47.tar.gz mitmproxy-15c10d49f6b020c5b913ae5b5e8c4b923a507a47.tar.bz2 mitmproxy-15c10d49f6b020c5b913ae5b5e8c4b923a507a47.zip | |
Merge pull request #1327 from mitmproxy/remove-script-context
Remove script context
Diffstat (limited to 'examples/change_upstream_proxy.py')
| -rw-r--r-- | examples/change_upstream_proxy.py | 2 |
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. |
