diff options
Diffstat (limited to 'libmproxy/console/__init__.py')
-rw-r--r-- | libmproxy/console/__init__.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index 196e71c7..69a50f18 100644 --- a/libmproxy/console/__init__.py +++ b/libmproxy/console/__init__.py @@ -372,11 +372,13 @@ class ConsoleMaster(flow.FlowMaster): sys.exit(1) def run_script_once(self, path, f): + if not path: + return ret = self.get_script(path) if ret[0]: self.statusbar.message(ret[0]) + return s = ret[1] - if f.request: s.run("request", f) if f.response: @@ -781,16 +783,6 @@ class ConsoleMaster(flow.FlowMaster): self.set_intercept ) self.sync_list_view() - elif k == "m": - self.prompt_onekey( - "View", - ( - ("raw", "r"), - ("pretty", "p"), - ("hex", "h"), - ), - self.changeview - ) elif k == "Q": raise Stop elif k == "q": |