[web] Move static viewer from default addon to WebMaster.

This commit is contained in:
Matthew Shao 2017-08-21 09:27:49 +08:00
parent d008f179c3
commit 2baa2c4049
2 changed files with 2 additions and 2 deletions

View File

@ -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(),

View File

@ -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,
)