aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAmmonite <pierre@ambox.fr>2017-01-21 09:39:34 +0100
committerAmmonite <pierre@ambox.fr>2017-01-21 09:39:34 +0100
commit93172460aa1d2f69aff1498ff399a286aedc6fc0 (patch)
treea325fca386a9b21f78c82b0dec0592f4aba43f42 /examples
parent8aa250d679a0e03546001295ee2e30fcb82516aa (diff)
downloadmitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.tar.gz
mitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.tar.bz2
mitmproxy-93172460aa1d2f69aff1498ff399a286aedc6fc0.zip
Add blank lines for lint
Diffstat (limited to 'examples')
-rw-r--r--examples/complex/dns_spoofing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/complex/dns_spoofing.py b/examples/complex/dns_spoofing.py
index 5a1b95d3..eae4860b 100644
--- a/examples/complex/dns_spoofing.py
+++ b/examples/complex/dns_spoofing.py
@@ -27,6 +27,7 @@ import re
# https://bugzilla.mozilla.org/show_bug.cgi?id=45891
parse_host_header = re.compile(r"^(?P<host>[^:]+|\[.+\])(?::(?P<port>\d+))?$")
+
class Rerouter:
def __init__(self):
self.hostHeader = None
@@ -54,5 +55,6 @@ class Rerouter:
flow.request.host = sni or host_header
flow.request.port = port
+
def start():
return Rerouter()