aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/common.py
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-06-05 15:33:36 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-06-05 15:33:36 -0300
commit1befa9477c0494fe4400dc62ee0c0907c32d46bd (patch)
treebffeb01d52777ff2bc7e2520d967e944726b9dc1 /libmproxy/console/common.py
parent17b34de28d374e7c2b189d796475668779f2ce3a (diff)
downloadmitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.tar.gz
mitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.tar.bz2
mitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.zip
fix #607 fix message
Diffstat (limited to 'libmproxy/console/common.py')
-rw-r--r--libmproxy/console/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py
index 2395a67d..e5bebf7f 100644
--- a/libmproxy/console/common.py
+++ b/libmproxy/console/common.py
@@ -284,7 +284,8 @@ def copy_flow(part, scope, flow, master, state):
signals.status_message.send(message="No contents to copy.")
return
- # this is because pyperclip does an encode('utf-8') without checking if data is already encoded or not
+ # pyperclip calls encode('utf-8') on data to be copied without checking.
+ # if data are already encoded that way UnicodeDecodeError is thrown.
toclip = ""
try:
toclip = data.decode('utf-8')