aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiroslav <ttahabatt@gmail.com>2018-02-19 23:31:26 +0200
committerMiroslav <ttahabatt@gmail.com>2018-02-19 23:31:26 +0200
commit4e03326ec5e26f9b9584fe980a196d034595d182 (patch)
treefc925088408269358ff86335b1251fef5c65dc8d
parente2b7abb89825ed57cd35553bade766dfde9fcbda (diff)
downloadmitmproxy-4e03326ec5e26f9b9584fe980a196d034595d182.tar.gz
mitmproxy-4e03326ec5e26f9b9584fe980a196d034595d182.tar.bz2
mitmproxy-4e03326ec5e26f9b9584fe980a196d034595d182.zip
quotes instead of join
-rw-r--r--mitmproxy/tools/console/consoleaddons.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mitmproxy/tools/console/consoleaddons.py b/mitmproxy/tools/console/consoleaddons.py
index e7cd40e7..e8979b01 100644
--- a/mitmproxy/tools/console/consoleaddons.py
+++ b/mitmproxy/tools/console/consoleaddons.py
@@ -259,7 +259,7 @@ class ConsoleAddon:
def callback(opt):
# We're now outside of the call context...
- repl = " ".join(args)
+ repl = "\"" + " ".join(args) + "\""
repl = repl.replace("{choice}", opt)
try:
self.master.commands.call(subcmd + " " + repl)
@@ -498,11 +498,10 @@ class ConsoleAddon:
@command.command("console.flowview.mode.set")
@command.argument("mode", type=mitmproxy.types.Choice("console.flowview.mode.options"))
- def flowview_mode_set(self, *mode: str) -> None:
+ def flowview_mode_set(self, mode: str) -> None:
"""
Set the display mode for the current flow view.
"""
- mode = " ".join(mode)
fv = self.master.window.current_window("flowview")
if not fv:
raise exceptions.CommandError("Not viewing a flow.")