summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: