aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2016-11-23 22:35:07 +0100
committerMaximilian Hils <git@maximilianhils.com>2016-11-23 22:35:07 +0100
commit45332006a3da246679e6043b4abee06cd3ba0636 (patch)
tree938bfacbd2c7329a4f9cb87c6d9f02c19d643fce /examples
parentdc75605e463f064fce07a1a7bf23b16f66742cbb (diff)
downloadmitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.tar.gz
mitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.tar.bz2
mitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.zip
mitmweb: 100% app test coverage, numerous fixes
Diffstat (limited to 'examples')
-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)