aboutsummaryrefslogtreecommitdiffstats
path: root/examples/complex/dup_and_replay.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-23 22:47:50 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-23 22:47:50 +0100
commit222106916e8c57ed9ab83f7c0c8d8a76d53ab298 (patch)
tree743898632b9f2b1d83d8a05a6725ab3311ae3ca9 /examples/complex/dup_and_replay.py
parentd15ddfad14052b7fd971f3b82bbb86e7ec39c40b (diff)
parent45332006a3da246679e6043b4abee06cd3ba0636 (diff)
downloadmitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.tar.gz
mitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.tar.bz2
mitmproxy-222106916e8c57ed9ab83f7c0c8d8a76d53ab298.zip
Merge branch 'mitmweb-eventlog'
Diffstat (limited to 'examples/complex/dup_and_replay.py')
-rw-r--r--examples/complex/dup_and_replay.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/complex/dup_and_replay.py b/examples/complex/dup_and_replay.py
index bf7c2a4e..2baa1ea6 100644
--- a/examples/complex/dup_and_replay.py
+++ b/examples/complex/dup_and_replay.py
@@ -2,6 +2,7 @@ from mitmproxy import ctx
def request(flow):
- f = ctx.master.state.duplicate_flow(flow)
+ f = flow.copy()
+ ctx.master.view.add(f)
f.request.path = "/changed"
ctx.master.replay_request(f, block=True)