aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/dup_and_replay.py6
-rw-r--r--mitmproxy/ctx.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/dup_and_replay.py b/examples/dup_and_replay.py
index b47bf951..55d6ce7b 100644
--- a/examples/dup_and_replay.py
+++ b/examples/dup_and_replay.py
@@ -1,7 +1,7 @@
-from mitmproxy import master
+from mitmproxy import ctx
def request(flow):
- f = master.duplicate_flow(flow)
+ f = ctx.master.state.duplicate_flow(flow)
f.request.path = "/changed"
- master.replay_request(f, block=True, run_scripthooks=False)
+ ctx.master.replay_request(f, block=True, run_scripthooks=False)
diff --git a/mitmproxy/ctx.py b/mitmproxy/ctx.py
index 4ecfe79b..adae8cf6 100644
--- a/mitmproxy/ctx.py
+++ b/mitmproxy/ctx.py
@@ -1,2 +1,2 @@
master = None # type: "mitmproxy.master.Master"
-log = None # type: "mitmproxy.controller.Log"
+log = None # type: "mitmproxy.log.Log"