aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/send_reply_from_proxy.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-04-29 23:19:11 +1200
committerGitHub <noreply@github.com>2017-04-29 23:19:11 +1200
commit83f87607036aad642515efe4fcdb0de9a8e31ed6 (patch)
treef72a30816e62e2c0492f70a46939afe3f222e152 /examples/simple/send_reply_from_proxy.py
parent25fb0cc019bfe2c86a8472831247fdee45703d53 (diff)
parent789fbd00d24ee591de592ae5d8143fe4278298d7 (diff)
downloadmitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.tar.gz
mitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.tar.bz2
mitmproxy-83f87607036aad642515efe4fcdb0de9a8e31ed6.zip
Merge pull request #2221 from iharsh234/mypy-master-example/simple
Extend mypy example/simple (#2194)
Diffstat (limited to 'examples/simple/send_reply_from_proxy.py')
-rw-r--r--examples/simple/send_reply_from_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple/send_reply_from_proxy.py b/examples/simple/send_reply_from_proxy.py
index bef2e7e7..5011fd2e 100644
--- a/examples/simple/send_reply_from_proxy.py
+++ b/examples/simple/send_reply_from_proxy.py
@@ -5,7 +5,7 @@ without sending any data to the remote server.
from mitmproxy import http
-def request(flow):
+def request(flow: http.HTTPFlow) -> None:
# pretty_url takes the "Host" header of the request into account, which
# is useful in transparent mode where we usually only have the IP otherwise.