mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Merge pull request #1385 from mitmproxy/console
console: nopop, rheaders into Options
This commit is contained in:
commit
c090e02848
@ -152,8 +152,8 @@ class ConnectionItem(urwid.WidgetWrap):
|
||||
if k == "a":
|
||||
self.master.start_server_playback(
|
||||
[i.copy() for i in self.master.state.view],
|
||||
self.master.options.kill, self.master.rheaders,
|
||||
False, self.master.nopop,
|
||||
self.master.options.kill, self.master.options.rheaders,
|
||||
False, self.master.options.nopop,
|
||||
self.master.options.replay_ignore_params,
|
||||
self.master.options.replay_ignore_content,
|
||||
self.master.options.replay_ignore_payload_params,
|
||||
@ -162,8 +162,8 @@ class ConnectionItem(urwid.WidgetWrap):
|
||||
elif k == "t":
|
||||
self.master.start_server_playback(
|
||||
[self.flow.copy()],
|
||||
self.master.options.kill, self.master.rheaders,
|
||||
False, self.master.nopop,
|
||||
self.master.options.kill, self.master.options.rheaders,
|
||||
False, self.master.options.nopop,
|
||||
self.master.options.replay_ignore_params,
|
||||
self.master.options.replay_ignore_content,
|
||||
self.master.options.replay_ignore_payload_params,
|
||||
|
@ -221,8 +221,6 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
|
||||
self.set_stream_large_bodies(options.stream_large_bodies)
|
||||
|
||||
self.rheaders = options.rheaders
|
||||
self.nopop = options.nopop
|
||||
self.palette = options.palette
|
||||
self.palette_transparent = options.palette_transparent
|
||||
|
||||
@ -370,8 +368,8 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
if flows:
|
||||
self.start_server_playback(
|
||||
flows,
|
||||
self.options.kill, self.rheaders,
|
||||
False, self.nopop,
|
||||
self.options.kill, self.options.rheaders,
|
||||
False, self.options.nopop,
|
||||
self.options.replay_ignore_params,
|
||||
self.options.replay_ignore_content,
|
||||
self.options.replay_ignore_payload_params,
|
||||
|
@ -151,7 +151,7 @@ class StatusBar(urwid.WidgetWrap):
|
||||
if self.master.server_playback:
|
||||
r.append("[")
|
||||
r.append(("heading_key", "splayback"))
|
||||
if self.master.nopop:
|
||||
if self.master.options.nopop:
|
||||
r.append(":%s in file]" % self.master.server_playback.count())
|
||||
else:
|
||||
r.append(":%s to go]" % self.master.server_playback.count())
|
||||
|
Loading…
Reference in New Issue
Block a user