mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
[web] Move static viewer from default addon to WebMaster.
This commit is contained in:
parent
d008f179c3
commit
2baa2c4049
@ -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(),
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user