aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/web/master.py
diff options
context:
space:
mode:
Diffstat (limited to 'mitmproxy/web/master.py')
-rw-r--r--mitmproxy/web/master.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/web/master.py b/mitmproxy/web/master.py
index 23c95e57..3f61fd94 100644
--- a/mitmproxy/web/master.py
+++ b/mitmproxy/web/master.py
@@ -133,7 +133,9 @@ class Options(options.Options):
class WebMaster(flow.FlowMaster):
def __init__(self, server, options):
- super().__init__(options, server, WebState())
+ super().__init__(options, server)
+ self.state = WebState()
+ self.addons.add(self.state)
self.addons.add(*builtins.default_addons())
self.app = app.Application(
self, self.options.wdebug, self.options.wauthenticator