[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 script
from mitmproxy.addons import serverplayback from mitmproxy.addons import serverplayback
from mitmproxy.addons import setheaders from mitmproxy.addons import setheaders
from mitmproxy.addons import static_viewer
from mitmproxy.addons import stickyauth from mitmproxy.addons import stickyauth
from mitmproxy.addons import stickycookie from mitmproxy.addons import stickycookie
from mitmproxy.addons import streambodies from mitmproxy.addons import streambodies
@ -40,7 +39,6 @@ def default_addons():
script.ScriptLoader(), script.ScriptLoader(),
serverplayback.ServerPlayback(), serverplayback.ServerPlayback(),
setheaders.SetHeaders(), setheaders.SetHeaders(),
static_viewer.StaticViewer(),
stickyauth.StickyAuth(), stickyauth.StickyAuth(),
stickycookie.StickyCookie(), stickycookie.StickyCookie(),
streambodies.StreamBodies(), streambodies.StreamBodies(),

View File

@ -12,6 +12,7 @@ from mitmproxy.addons import readfile
from mitmproxy.addons import termlog from mitmproxy.addons import termlog
from mitmproxy.addons import view from mitmproxy.addons import view
from mitmproxy.addons import termstatus from mitmproxy.addons import termstatus
from mitmproxy.addons import static_viewer
from mitmproxy.options import Options # noqa from mitmproxy.options import Options # noqa
from mitmproxy.tools.web import app, webaddons from mitmproxy.tools.web import app, webaddons
@ -37,6 +38,7 @@ class WebMaster(master.Master):
webaddons.WebAddon(), webaddons.WebAddon(),
intercept.Intercept(), intercept.Intercept(),
readfile.ReadFile(), readfile.ReadFile(),
static_viewer.StaticViewer(),
self.view, self.view,
self.events, self.events,
) )