mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
removed str() cast and changed 'failed copy trying save instead' message
This commit is contained in:
parent
64c02a16c3
commit
f49dcb0d91
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user