aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-18 08:35:07 +1200
committerAldo Cortesi <aldo@corte.si>2018-04-18 09:01:42 +1200
commite6538cdb1f757e544a20c24c35259e0bbea212ab (patch)
tree395ef02cd68a9200d4ac9b0cf2feb2e74a5507a8
parentbca0275427e5879e49cd91d0802e51052a8000d1 (diff)
downloadmitmproxy-e6538cdb1f757e544a20c24c35259e0bbea212ab.tar.gz
mitmproxy-e6538cdb1f757e544a20c24c35259e0bbea212ab.tar.bz2
mitmproxy-e6538cdb1f757e544a20c24c35259e0bbea212ab.zip
mitmweb: don't blort all over my config file
Temporarily disable config saving until we can look at this more closely. Config saving should: - Only happen when explicitly requested by the user - Only save changed values
-rw-r--r--mitmproxy/tools/web/app.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py
index 936eb75b..61e30a21 100644
--- a/mitmproxy/tools/web/app.py
+++ b/mitmproxy/tools/web/app.py
@@ -18,7 +18,6 @@ from mitmproxy import io
from mitmproxy import log
from mitmproxy import version
from mitmproxy import optmanager
-from mitmproxy.tools.cmdline import CONFIG_PATH
import mitmproxy.tools.web.master # noqa
@@ -457,10 +456,11 @@ class Options(RequestHandler):
class SaveOptions(RequestHandler):
def post(self):
- try:
- optmanager.save(self.master.options, CONFIG_PATH, True)
- except Exception as err:
- raise APIError(400, "{}".format(err))
+ # try:
+ # optmanager.save(self.master.options, CONFIG_PATH, True)
+ # except Exception as err:
+ # raise APIError(400, "{}".format(err))
+ pass
class Application(tornado.web.Application):