mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +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 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(),
|
||||||
|
@ -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,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user