diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-07-13 23:45:49 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-07-13 23:45:49 +1200 |
commit | 255e1eb00b76f169305d7c4ae3bba91403f3f924 (patch) | |
tree | c71a9a1ddf4a373a8a0c796c78a2aefecf111ea4 /mitmproxy/controller.py | |
parent | 1f72532caeb38207207b6b2310ca9ca3b8b9c512 (diff) | |
download | mitmproxy-255e1eb00b76f169305d7c4ae3bba91403f3f924.tar.gz mitmproxy-255e1eb00b76f169305d7c4ae3bba91403f3f924.tar.bz2 mitmproxy-255e1eb00b76f169305d7c4ae3bba91403f3f924.zip |
Add the addons mechanism
Demonstrate how it works and interacts with Options by adding our first new
builtin: anticomp.
Diffstat (limited to 'mitmproxy/controller.py')
-rw-r--r-- | mitmproxy/controller.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py index d09038f8..8b968eb5 100644 --- a/mitmproxy/controller.py +++ b/mitmproxy/controller.py @@ -199,7 +199,7 @@ def handler(f): if handling: # Python2/3 compatibility hack fn = getattr(f, "func_name", None) or getattr(f, "__name__") - master.addons(fn) + master.addons(fn, message) if handling and not message.reply.acked and not message.reply.taken: message.reply.ack() |