aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Glezer <marcelo.glezer@gmail.com>2015-02-06 00:59:05 -0300
committerMarcelo Glezer <marcelo.glezer@gmail.com>2015-02-06 00:59:05 -0300
commitf49dcb0d91031c75231b4659f141aece5a43f8d1 (patch)
treec49b62bc70a22fe59291d65de0abfe2a52af34e4
parent64c02a16c389d4fdee396f132a76a627302c7511 (diff)
downloadmitmproxy-f49dcb0d91031c75231b4659f141aece5a43f8d1.tar.gz
mitmproxy-f49dcb0d91031c75231b4659f141aece5a43f8d1.tar.bz2
mitmproxy-f49dcb0d91031c75231b4659f141aece5a43f8d1.zip
removed str() cast and changed 'failed copy trying save instead' message
-rw-r--r--libmproxy/console/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py
index 6141bc1c..c0929d58 100644
--- a/libmproxy/console/common.py
+++ b/libmproxy/console/common.py
@@ -224,7 +224,7 @@ def copy_message( k, master, state, message):
pyperclip.copy(message.get_decoded_content())
except TypeError:
master.prompt_onekey(
- "Content is binary do you want to save it to a file instead?",
+ "Cannot copy binary data to clipboard. Save as file?",
(
("yes", "y"),
("no", "n"),
@@ -236,7 +236,7 @@ def copy_message( k, master, state, message):
)
elif k == "h":
try:
- pyperclip.copy(str(message.headers))
+ pyperclip.copy(message.headers)
except TypeError:
master.statusbar.message("Error converting headers to text")
elif k == "u":