aboutsummaryrefslogtreecommitdiffstats
path: root/examples/proxapp.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-07-14 16:20:27 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-07-14 19:54:15 +1200
commitb94f5fd361af6255ad4d3c7a88b9a21868736dea (patch)
tree5237bbd32c84d284a5c4b2478a9034f11d39a850 /examples/proxapp.py
parenta6821aad8e9296640c3efd4275e8922dd7c6e43b (diff)
downloadmitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.tar.gz
mitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.tar.bz2
mitmproxy-b94f5fd361af6255ad4d3c7a88b9a21868736dea.zip
Convert examples and example tests for new-style scripts
Remove the test that just loads all the example scripts for now - it's a very low-value test, and we need to think of something better.
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 2935b587..095f412a 100644
--- a/examples/proxapp.py
+++ b/examples/proxapp.py
@@ -16,7 +16,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():
+def configure(options):
mitmproxy.ctx.master.apps.add(app, "proxapp", 80)
# SSL works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.