diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dup_and_replay.py | 6 |
1 files changed, 3 insertions, 3 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) |