From 2baa2c4049ab6b2801b3836b28b3e9df815a0075 Mon Sep 17 00:00:00 2001 From: Matthew Shao Date: Mon, 21 Aug 2017 09:27:49 +0800 Subject: [PATCH] [web] Move static viewer from default addon to WebMaster. --- mitmproxy/addons/__init__.py | 2 -- mitmproxy/tools/web/master.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/addons/__init__.py b/mitmproxy/addons/__init__.py index e46c215be..62135765c 100644 --- a/mitmproxy/addons/__init__.py +++ b/mitmproxy/addons/__init__.py @@ -14,7 +14,6 @@ from mitmproxy.addons import replace from mitmproxy.addons import script from mitmproxy.addons import serverplayback from mitmproxy.addons import setheaders -from mitmproxy.addons import static_viewer from mitmproxy.addons import stickyauth from mitmproxy.addons import stickycookie from mitmproxy.addons import streambodies @@ -40,7 +39,6 @@ def default_addons(): script.ScriptLoader(), serverplayback.ServerPlayback(), setheaders.SetHeaders(), - static_viewer.StaticViewer(), stickyauth.StickyAuth(), stickycookie.StickyCookie(), streambodies.StreamBodies(), diff --git a/mitmproxy/tools/web/master.py b/mitmproxy/tools/web/master.py index b13aeff9e..c391a1cd4 100644 --- a/mitmproxy/tools/web/master.py +++ b/mitmproxy/tools/web/master.py @@ -12,6 +12,7 @@ from mitmproxy.addons import readfile from mitmproxy.addons import termlog from mitmproxy.addons import view from mitmproxy.addons import termstatus +from mitmproxy.addons import static_viewer from mitmproxy.options import Options # noqa from mitmproxy.tools.web import app, webaddons @@ -37,6 +38,7 @@ class WebMaster(master.Master): webaddons.WebAddon(), intercept.Intercept(), readfile.ReadFile(), + static_viewer.StaticViewer(), self.view, self.events, )