diff options
author | Aldo Cortesi <aldo@corte.si> | 2018-02-20 09:30:29 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2018-02-20 09:30:29 +1300 |
commit | 8129b93bb0883e982fdef9caae97ed4765b2805f (patch) | |
tree | 616ba2c54a5321512fad14373aecef5658d9d5a6 /mitmproxy | |
parent | b09c28d8a6fcd2af4a43b968b800d44c5a8c836e (diff) | |
download | mitmproxy-8129b93bb0883e982fdef9caae97ed4765b2805f.tar.gz mitmproxy-8129b93bb0883e982fdef9caae97ed4765b2805f.tar.bz2 mitmproxy-8129b93bb0883e982fdef9caae97ed4765b2805f.zip |
option refresh_server_playback -> server_replay_refresh
All other server playback options have this form.
Diffstat (limited to 'mitmproxy')
-rw-r--r-- | mitmproxy/addons/serverplayback.py | 2 | ||||
-rw-r--r-- | mitmproxy/options.py | 4 | ||||
-rw-r--r-- | mitmproxy/tools/console/statusbar.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/addons/serverplayback.py b/mitmproxy/addons/serverplayback.py index 927f6e15..bb9d739d 100644 --- a/mitmproxy/addons/serverplayback.py +++ b/mitmproxy/addons/serverplayback.py @@ -131,7 +131,7 @@ class ServerPlayback: if rflow: response = rflow.response.copy() response.is_replay = True - if ctx.options.refresh_server_playback: + if ctx.options.server_replay_refresh: response.refresh() f.response = response if not self.flowmap: diff --git a/mitmproxy/options.py b/mitmproxy/options.py index ff7edf39..a897596d 100644 --- a/mitmproxy/options.py +++ b/mitmproxy/options.py @@ -65,7 +65,7 @@ class Options(optmanager.OptManager): onboarding_port = None # type: int proxyauth = None # type: Optional[str] rawtcp = None # type: bool - refresh_server_playback = None # type: bool + server_replay_refresh = None # type: bool replacements = None # type: Sequence[str] replay_kill_extra = None # type: bool rfile = None # type: Optional[str] @@ -160,7 +160,7 @@ class Options(optmanager.OptManager): """ ) self.add_option( - "refresh_server_playback", bool, True, + "server_replay_refresh", bool, True, """ Refresh server replay responses by adjusting date, expires and last-modified headers, as well as adjusting cookie expiration. diff --git a/mitmproxy/tools/console/statusbar.py b/mitmproxy/tools/console/statusbar.py index 795b3d8a..83c2a934 100644 --- a/mitmproxy/tools/console/statusbar.py +++ b/mitmproxy/tools/console/statusbar.py @@ -211,7 +211,7 @@ class StatusBar(urwid.WidgetWrap): opts.append("anticomp") if self.master.options.showhost: opts.append("showhost") - if not self.master.options.refresh_server_playback: + if not self.master.options.server_replay_refresh: opts.append("norefresh") if self.master.options.replay_kill_extra: opts.append("killextra") |