diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 22:35:07 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-11-23 22:35:07 +0100 |
commit | 45332006a3da246679e6043b4abee06cd3ba0636 (patch) | |
tree | 938bfacbd2c7329a4f9cb87c6d9f02c19d643fce /examples/complex | |
parent | dc75605e463f064fce07a1a7bf23b16f66742cbb (diff) | |
download | mitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.tar.gz mitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.tar.bz2 mitmproxy-45332006a3da246679e6043b4abee06cd3ba0636.zip |
mitmweb: 100% app test coverage, numerous fixes
Diffstat (limited to 'examples/complex')
-rw-r--r-- | examples/complex/dup_and_replay.py | 3 |
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) |