aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/console/options.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-07-14 12:09:21 +1200
committerGitHub <noreply@github.com>2016-07-14 12:09:21 +1200
commitc0cd01b6e3fc28497ce19de9ff0888ffc99f63ed (patch)
tree836dd5e79ed38b638a919133cbe95e61b52a2736 /mitmproxy/console/options.py
parentb56de79d6c4362d9587c4a5254dd7757a34dac7b (diff)
parentb5a69e23988b0ca419fa0f1503d60aea4bb1a5d2 (diff)
downloadmitmproxy-c0cd01b6e3fc28497ce19de9ff0888ffc99f63ed.tar.gz
mitmproxy-c0cd01b6e3fc28497ce19de9ff0888ffc99f63ed.tar.bz2
mitmproxy-c0cd01b6e3fc28497ce19de9ff0888ffc99f63ed.zip
Merge pull request #1351 from cortesi/anticache
AntiCache to addon
Diffstat (limited to 'mitmproxy/console/options.py')
-rw-r--r--mitmproxy/console/options.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/console/options.py b/mitmproxy/console/options.py
index f6342814..c76a058f 100644
--- a/mitmproxy/console/options.py
+++ b/mitmproxy/console/options.py
@@ -96,7 +96,7 @@ class Options(urwid.WidgetWrap):
select.Option(
"Anti-Cache",
"a",
- lambda: master.anticache,
+ lambda: master.options.anticache,
self.toggle_anticache
),
select.Option(
@@ -152,7 +152,6 @@ class Options(urwid.WidgetWrap):
return super(self.__class__, self).keypress(size, key)
def clearall(self):
- self.master.anticache = False
self.master.killextra = False
self.master.showhost = False
self.master.refresh_server_playback = True
@@ -164,8 +163,9 @@ class Options(urwid.WidgetWrap):
self.master.scripts = []
self.master.set_stickycookie(None)
- self.master.options.stickyauth = None
+ self.master.options.anticache = False
self.master.options.anticomp = False
+ self.master.options.stickyauth = None
self.master.state.default_body_view = contentviews.get("Auto")
@@ -176,7 +176,7 @@ class Options(urwid.WidgetWrap):
)
def toggle_anticache(self):
- self.master.anticache = not self.master.anticache
+ self.master.options.anticache = not self.master.options.anticache
def toggle_anticomp(self):
self.master.options.anticomp = not self.master.options.anticomp