diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-16 16:34:04 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-16 20:26:06 +1300 |
commit | 97b594b84811da7bd90a615752c47c8982c1303c (patch) | |
tree | 0505aec5f5599775ed0512c7bab6237ffb78192f | |
parent | 072fff90f119375395a9b1b2fbef9667a46f7236 (diff) | |
download | mitmproxy-97b594b84811da7bd90a615752c47c8982c1303c.tar.gz mitmproxy-97b594b84811da7bd90a615752c47c8982c1303c.tar.bz2 mitmproxy-97b594b84811da7bd90a615752c47c8982c1303c.zip |
mitmdump: fix addon order - dumper must be last
This is so we can see the effects of script rewriting using -dd.
-rw-r--r-- | mitmproxy/dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/dump.py b/mitmproxy/dump.py index 70035fb7..c25d93f8 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) |