mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Fix stickycookie setting, indented view traceback.
This commit is contained in:
parent
0042687f0d
commit
18d25ec1a1
@ -1256,7 +1256,11 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
)
|
||||
k = None
|
||||
elif k == "t":
|
||||
self.prompt("Sticky cookie: ", self.set_stickycookie)
|
||||
self.prompt(
|
||||
"Sticky cookie: ",
|
||||
self.stickycookie_txt,
|
||||
self.set_stickycookie
|
||||
)
|
||||
k = None
|
||||
if k:
|
||||
self.view.keypress(size, k)
|
||||
|
@ -469,8 +469,10 @@ class FlowMaster(controller.Master):
|
||||
if not flt:
|
||||
return "Invalid filter expression."
|
||||
self.stickycookie_state = StickyCookieState(flt)
|
||||
self.stickycookie_txt = txt
|
||||
else:
|
||||
self.stickycookie_state = None
|
||||
self.stickycookie_txt = None
|
||||
|
||||
def start_client_playback(self, flows, exit):
|
||||
"""
|
||||
|
@ -75,6 +75,7 @@ def pretty_xmlish(s):
|
||||
A robust pretty-printer for XML-ish data.
|
||||
Returns a list of lines.
|
||||
"""
|
||||
s = cleanBin(s)
|
||||
data, offset, indent, prev = [], 0, 0, None
|
||||
for i in re.finditer(TAG, s, re.VERBOSE|re.MULTILINE):
|
||||
start, end = i.span()
|
||||
|
Loading…
Reference in New Issue
Block a user