aboutsummaryrefslogtreecommitdiffstats
path: root/examples/proxapp.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-06-14 15:25:01 +1200
committerGitHub <noreply@github.com>2016-06-14 15:25:01 +1200
commitd8ae2f156203a81a8e6d325f5c460c351cfbfc5c (patch)
tree8b5e8ef981b6f691dcbbd504883714cb2f6fc182 /examples/proxapp.py
parentccf4723505935f759c1bff5c5cc7d6d986726422 (diff)
parentc2b5a13e3f1cfd193184c2fca9df0d531501a8ab (diff)
downloadmitmproxy-d8ae2f156203a81a8e6d325f5c460c351cfbfc5c.tar.gz
mitmproxy-d8ae2f156203a81a8e6d325f5c460c351cfbfc5c.tar.bz2
mitmproxy-d8ae2f156203a81a8e6d325f5c460c351cfbfc5c.zip
Merge pull request #1254 from mitmproxy/scriptargs
Inline Scripts: use sys.argv instead of args argument.
Diffstat (limited to 'examples/proxapp.py')
-rw-r--r--examples/proxapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/proxapp.py b/examples/proxapp.py
index 4d8e7b58..613d3f8b 100644
--- a/examples/proxapp.py
+++ b/examples/proxapp.py
@@ -15,7 +15,7 @@ def hello_world():
# Register the app using the magic domain "proxapp" on port 80. Requests to
# this domain and port combination will now be routed to the WSGI app instance.
-def start(context, argv):
+def start(context):
context.app_registry.add(app, "proxapp", 80)
# SSL works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.