diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 16:02:31 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 17:03:34 +0200 |
commit | ebd539b49f0706918e979dc921cf454ae448eaf9 (patch) | |
tree | 1c541027c735e18c7486d5d9ebda7367278ac244 /examples/dup_and_replay.py | |
parent | d06b4bfa4e4cc51e903b49e246d7771726a3e3a4 (diff) | |
download | mitmproxy-ebd539b49f0706918e979dc921cf454ae448eaf9.tar.gz mitmproxy-ebd539b49f0706918e979dc921cf454ae448eaf9.tar.bz2 mitmproxy-ebd539b49f0706918e979dc921cf454ae448eaf9.zip |
update examples, fix #353
Diffstat (limited to 'examples/dup_and_replay.py')
-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 b38c2b7e..3d9279cc 100644 --- a/examples/dup_and_replay.py +++ b/examples/dup_and_replay.py @@ -1,4 +1,4 @@ -def request(ctx, flow): - f = ctx.duplicate_flow(flow) +def request(context, flow): + f = context.duplicate_flow(flow) f.request.path = "/changed" - ctx.replay_request(f)
\ No newline at end of file + context.replay_request(f)
\ No newline at end of file |