Small workaround to make mitmproxy work again.

Further work is required to make scripts work again, though.
This commit is contained in:
Aldo Cortesi 2013-12-09 22:34:47 +13:00
parent 3bd238de37
commit 1d536f64d5

View File

@ -173,7 +173,7 @@ class StatusBar(common.WWrap):
if opts:
r.append("[%s]"%(":".join(opts)))
if self.master.script:
if self.master.scripts:
r.append("[script:%s]"%self.master.script.path)
if self.master.debug:
@ -880,7 +880,7 @@ class ConsoleMaster(flow.FlowMaster):
)
)
elif k == "s":
if self.script:
if self.scripts:
self.load_script(None)
else:
self.path_prompt(