mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
option refresh_server_playback -> server_replay_refresh
All other server playback options have this form.
This commit is contained in:
parent
b09c28d8a6
commit
8129b93bb0
@ -131,7 +131,7 @@ class ServerPlayback:
|
|||||||
if rflow:
|
if rflow:
|
||||||
response = rflow.response.copy()
|
response = rflow.response.copy()
|
||||||
response.is_replay = True
|
response.is_replay = True
|
||||||
if ctx.options.refresh_server_playback:
|
if ctx.options.server_replay_refresh:
|
||||||
response.refresh()
|
response.refresh()
|
||||||
f.response = response
|
f.response = response
|
||||||
if not self.flowmap:
|
if not self.flowmap:
|
||||||
|
@ -65,7 +65,7 @@ class Options(optmanager.OptManager):
|
|||||||
onboarding_port = None # type: int
|
onboarding_port = None # type: int
|
||||||
proxyauth = None # type: Optional[str]
|
proxyauth = None # type: Optional[str]
|
||||||
rawtcp = None # type: bool
|
rawtcp = None # type: bool
|
||||||
refresh_server_playback = None # type: bool
|
server_replay_refresh = None # type: bool
|
||||||
replacements = None # type: Sequence[str]
|
replacements = None # type: Sequence[str]
|
||||||
replay_kill_extra = None # type: bool
|
replay_kill_extra = None # type: bool
|
||||||
rfile = None # type: Optional[str]
|
rfile = None # type: Optional[str]
|
||||||
@ -160,7 +160,7 @@ class Options(optmanager.OptManager):
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
self.add_option(
|
self.add_option(
|
||||||
"refresh_server_playback", bool, True,
|
"server_replay_refresh", bool, True,
|
||||||
"""
|
"""
|
||||||
Refresh server replay responses by adjusting date, expires and
|
Refresh server replay responses by adjusting date, expires and
|
||||||
last-modified headers, as well as adjusting cookie expiration.
|
last-modified headers, as well as adjusting cookie expiration.
|
||||||
|
@ -211,7 +211,7 @@ class StatusBar(urwid.WidgetWrap):
|
|||||||
opts.append("anticomp")
|
opts.append("anticomp")
|
||||||
if self.master.options.showhost:
|
if self.master.options.showhost:
|
||||||
opts.append("showhost")
|
opts.append("showhost")
|
||||||
if not self.master.options.refresh_server_playback:
|
if not self.master.options.server_replay_refresh:
|
||||||
opts.append("norefresh")
|
opts.append("norefresh")
|
||||||
if self.master.options.replay_kill_extra:
|
if self.master.options.replay_kill_extra:
|
||||||
opts.append("killextra")
|
opts.append("killextra")
|
||||||
|
@ -331,7 +331,7 @@ def test_server_playback_full():
|
|||||||
with taddons.context() as tctx:
|
with taddons.context() as tctx:
|
||||||
tctx.configure(
|
tctx.configure(
|
||||||
s,
|
s,
|
||||||
refresh_server_playback = True,
|
server_replay_refresh = True,
|
||||||
)
|
)
|
||||||
|
|
||||||
f = tflow.tflow()
|
f = tflow.tflow()
|
||||||
@ -363,7 +363,7 @@ def test_server_playback_kill():
|
|||||||
with taddons.context() as tctx:
|
with taddons.context() as tctx:
|
||||||
tctx.configure(
|
tctx.configure(
|
||||||
s,
|
s,
|
||||||
refresh_server_playback = True,
|
server_replay_refresh = True,
|
||||||
replay_kill_extra=True
|
replay_kill_extra=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ def test_statusbar(monkeypatch):
|
|||||||
anticache=True,
|
anticache=True,
|
||||||
anticomp=True,
|
anticomp=True,
|
||||||
showhost=True,
|
showhost=True,
|
||||||
refresh_server_playback=False,
|
server_replay_refresh=False,
|
||||||
replay_kill_extra=True,
|
replay_kill_extra=True,
|
||||||
upstream_cert=False,
|
upstream_cert=False,
|
||||||
stream_large_bodies="3m",
|
stream_large_bodies="3m",
|
||||||
|
Loading…
Reference in New Issue
Block a user