From 97b594b84811da7bd90a615752c47c8982c1303c Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 16 Oct 2016 16:34:04 +1300 Subject: [PATCH] mitmdump: fix addon order - dumper must be last This is so we can see the effects of script rewriting using -dd. --- mitmproxy/dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index 70035fb7b..c25d93f8f 100644 --- a/mitmproxy/dump.py +++ b/mitmproxy/dump.py @@ -37,9 +37,9 @@ class DumpMaster(flow.FlowMaster): def __init__(self, server, options): flow.FlowMaster.__init__(self, options, server, flow.DummyState()) self.has_errored = False - self.addons.add(dumper.Dumper()) self.addons.add(termlog.TermLog()) self.addons.add(*builtins.default_addons()) + self.addons.add(dumper.Dumper()) # This line is just for type hinting self.options = self.options # type: Options self.set_stream_large_bodies(options.stream_large_bodies)