aboutsummaryrefslogtreecommitdiffstats
path: root/examples/redirect_requests.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-05-29 11:03:54 +0200
committerThomas Kriechbaumer <Kriechi@users.noreply.github.com>2016-05-29 11:03:54 +0200
commitc707479bcd5a8ebb5d6bc8f54a5879176db46b3a (patch)
tree8fb49cb2bfa2f68b2841f2a4028c91eb781e4587 /examples/redirect_requests.py
parent979c7fc319cbf551b9ea14062387f195b208b8fa (diff)
parent17382b963e22de8cb395a99e529b256e03d440ce (diff)
downloadmitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.tar.gz
mitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.tar.bz2
mitmproxy-c707479bcd5a8ebb5d6bc8f54a5879176db46b3a.zip
Merge pull request #1173 from mitmproxy/format-examples
Format examples
Diffstat (limited to 'examples/redirect_requests.py')
-rw-r--r--examples/redirect_requests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/redirect_requests.py b/examples/redirect_requests.py
index c0a0ccba..3ff8f9e4 100644
--- a/examples/redirect_requests.py
+++ b/examples/redirect_requests.py
@@ -4,6 +4,7 @@ This example shows two ways to redirect flows to other destinations.
from mitmproxy.models import HTTPResponse
from netlib.http import Headers
+
def request(context, flow):
# pretty_host takes the "Host" header of the request into account,
# which is useful in transparent mode where we usually only have the IP