aboutsummaryrefslogtreecommitdiffstats
path: root/examples/dns_spoofing.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-09-28 13:54:53 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-09-28 13:54:53 +0200
commitc11ab3676dee2a490994665e867bcfcb26945777 (patch)
treef898c23973b10079fa4479238d5f8f5a8e61d46e /examples/dns_spoofing.py
parent6661770d4eee3eab3305793613586f3684c24ae9 (diff)
parent6075957a9730c6ca5c4c7361bd774345f83d6f59 (diff)
downloadmitmproxy-c11ab3676dee2a490994665e867bcfcb26945777.tar.gz
mitmproxy-c11ab3676dee2a490994665e867bcfcb26945777.tar.bz2
mitmproxy-c11ab3676dee2a490994665e867bcfcb26945777.zip
Merge branch 'http-models'
Diffstat (limited to 'examples/dns_spoofing.py')
-rw-r--r--examples/dns_spoofing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dns_spoofing.py b/examples/dns_spoofing.py
index 98495d45..7eb79695 100644
--- a/examples/dns_spoofing.py
+++ b/examples/dns_spoofing.py
@@ -39,7 +39,7 @@ def request(context, flow):
sni = None
port = 80
- host_header = flow.request.pretty_host(hostheader=True)
+ host_header = flow.request.pretty_host
m = parse_host_header.match(host_header)
if m:
host_header = m.group("host").strip("[]")