diff options
author | Marcelo Glezer <mg@tekii.com.ar> | 2015-06-05 15:33:36 -0300 |
---|---|---|
committer | Marcelo Glezer <mg@tekii.com.ar> | 2015-06-05 15:33:36 -0300 |
commit | 1befa9477c0494fe4400dc62ee0c0907c32d46bd (patch) | |
tree | bffeb01d52777ff2bc7e2520d967e944726b9dc1 /libmproxy/console | |
parent | 17b34de28d374e7c2b189d796475668779f2ce3a (diff) | |
download | mitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.tar.gz mitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.tar.bz2 mitmproxy-1befa9477c0494fe4400dc62ee0c0907c32d46bd.zip |
fix #607 fix message
Diffstat (limited to 'libmproxy/console')
-rw-r--r-- | libmproxy/console/common.py | 3 |
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') |