aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authormadt1m <blackjuniper@protonmail.com>2018-06-13 11:56:14 +0200
committermadt1m <blackjuniper@protonmail.com>2018-06-13 11:56:14 +0200
commit773c9535146991af38f954cb4d3b0ead9d7485c5 (patch)
tree0530549e9a9725401d0a26a663b741762448923f /examples
parentb6fd9b4484d8d13dfd98a900a9b97549c8f3e52f (diff)
downloadmitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.tar.gz
mitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.tar.bz2
mitmproxy-773c9535146991af38f954cb4d3b0ead9d7485c5.zip
View API slightly extended; codebase cleaned in some points
Diffstat (limited to 'examples')
-rw-r--r--examples/complex/dup_and_replay.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/complex/dup_and_replay.py b/examples/complex/dup_and_replay.py
index adcebff3..3ad98dc5 100644
--- a/examples/complex/dup_and_replay.py
+++ b/examples/complex/dup_and_replay.py
@@ -9,6 +9,6 @@ def request(flow):
# Only interactive tools have a view. If we have one, add a duplicate entry
# for our flow.
if "view" in ctx.master.addons:
- ctx.master.commands.call("view.add", [flow])
+ ctx.master.commands.call("view.flows.add", [flow])
flow.request.path = "/changed"
ctx.master.commands.call("replay.client", [flow])