From eda1b39a744ebfddfc6d3b7b87fb957d936f7f2b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 25 Oct 2016 22:06:52 -0700 Subject: minor fixes --- examples/dup_and_replay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/dup_and_replay.py') 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) -- cgit v1.2.3