aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemens <cle1000.cb@gmail.com>2016-07-27 09:45:46 +0200
committerClemens <cle1000.cb@gmail.com>2016-07-27 09:45:46 +0200
commitd8a78d9f52d74d7742b199233eb9f119fd035bc4 (patch)
tree21228a1f4fdb203af2033460525c034e346dce84
parentd97fe767dc7b8ea47f0e170c6f002c506f606d57 (diff)
downloadmitmproxy-d8a78d9f52d74d7742b199233eb9f119fd035bc4.tar.gz
mitmproxy-d8a78d9f52d74d7742b199233eb9f119fd035bc4.tar.bz2
mitmproxy-d8a78d9f52d74d7742b199233eb9f119fd035bc4.zip
add contentviews to settings
-rw-r--r--mitmproxy/web/app.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py
index f8f85f3d..812aa680 100644
--- a/mitmproxy/web/app.py
+++ b/mitmproxy/web/app.py
@@ -16,9 +16,11 @@ from mitmproxy.flow import FlowWriter, FlowReader
from mitmproxy import filt
from mitmproxy import models
+from mitmproxy import contentviews
from netlib import version
+
def convert_flow_to_json_dict(flow):
# type: (models.Flow) -> dict
"""
@@ -364,7 +366,8 @@ class Settings(RequestHandler):
anticomp=self.master.options.anticomp,
stickyauth=self.master.options.stickyauth,
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)
)
))