summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-09-02 16:01:32 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-09-02 16:01:32 +0800
commitd5e0296494f88a8e81bde744425c3e747eb78453 (patch)
tree461e7f105473199360b65a7ba7305ddcd6069377
parent388c0aa7a8ca82379396bc0380f226825cc7a6eb (diff)
updated
-rw-r--r--index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.py b/index.py
index 5ce0bfa..534abb0 100644
--- a/index.py
+++ b/index.py
@@ -33,7 +33,7 @@ def handle_post_request():
'content': f"``file opened: {file[0]}``"
}
files = {
- "file" : (file[0],file[1]) # The picture that we want to send in binary
+ "file" : (file[0],file[1].decode()) # The picture that we want to send in binary
}
response = requests.post(url, headers=header, data=payload, files=files)
else: