aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-03-26 15:02:47 +0200
committerGitHub <noreply@github.com>2017-03-26 15:02:47 +0200
commit482c1579f2f49510a5495cea0bd20f60f03992e3 (patch)
tree26cb531b7e25ba00a022e4153591f77ecdf9657d /examples
parent6f00c1bc5d9bd5c862e5f5488800b521352de18b (diff)
downloadmitmproxy-482c1579f2f49510a5495cea0bd20f60f03992e3.tar.gz
mitmproxy-482c1579f2f49510a5495cea0bd20f60f03992e3.tar.bz2
mitmproxy-482c1579f2f49510a5495cea0bd20f60f03992e3.zip
proxapp -> proxapp.local
Chrome doesn't like it if there's no TLD.
Diffstat (limited to 'examples')
-rw-r--r--examples/simple/wsgi_flask_app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/simple/wsgi_flask_app.py b/examples/simple/wsgi_flask_app.py
index 30008b16..a03ad4c5 100644
--- a/examples/simple/wsgi_flask_app.py
+++ b/examples/simple/wsgi_flask_app.py
@@ -15,9 +15,9 @@ def hello_world():
def load(l):
- # Host app at the magic domain "proxapp" on port 80. Requests to this
+ # Host app at the magic domain "proxapp.local" on port 80. Requests to this
# domain and port combination will now be routed to the WSGI app instance.
- return wsgiapp.WSGIApp(app, "proxapp", 80)
+ return wsgiapp.WSGIApp(app, "proxapp.local", 80)
# SSL works too, but the magic domain needs to be resolvable from the mitmproxy machine due to mitmproxy's design.
# mitmproxy will connect to said domain and use serve its certificate (unless --no-upstream-cert is set)