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())
|
pyperclip.copy(message.get_decoded_content())
|
||||||
except TypeError:
|
except TypeError:
|
||||||
master.prompt_onekey(
|
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"),
|
("yes", "y"),
|
||||||
("no", "n"),
|
("no", "n"),
|
||||||
@ -236,7 +236,7 @@ def copy_message( k, master, state, message):
|
|||||||
)
|
)
|
||||||
elif k == "h":
|
elif k == "h":
|
||||||
try:
|
try:
|
||||||
pyperclip.copy(str(message.headers))
|
pyperclip.copy(message.headers)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
master.statusbar.message("Error converting headers to text")
|
master.statusbar.message("Error converting headers to text")
|
||||||
elif k == "u":
|
elif k == "u":
|
||||||
|
Loading…
Reference in New Issue
Block a user