mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-07 10:40:09 +00:00
add contentviews to settings
This commit is contained in:
parent
d97fe767dc
commit
d8a78d9f52
@ -16,9 +16,11 @@ from mitmproxy.flow import FlowWriter, FlowReader
|
|||||||
|
|
||||||
from mitmproxy import filt
|
from mitmproxy import filt
|
||||||
from mitmproxy import models
|
from mitmproxy import models
|
||||||
|
from mitmproxy import contentviews
|
||||||
from netlib import version
|
from netlib import version
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def convert_flow_to_json_dict(flow):
|
def convert_flow_to_json_dict(flow):
|
||||||
# type: (models.Flow) -> dict
|
# type: (models.Flow) -> dict
|
||||||
"""
|
"""
|
||||||
@ -364,7 +366,8 @@ class Settings(RequestHandler):
|
|||||||
anticomp=self.master.options.anticomp,
|
anticomp=self.master.options.anticomp,
|
||||||
stickyauth=self.master.options.stickyauth,
|
stickyauth=self.master.options.stickyauth,
|
||||||
stickycookie=self.master.options.stickycookie,
|
stickycookie=self.master.options.stickycookie,
|
||||||
stream= self.master.options.stream_large_bodies
|
stream= self.master.options.stream_large_bodies,
|
||||||
|
contentViews= map(lambda v : v.name, contentviews.views)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user