summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authormrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 16:22:00 +0800
committermrdog233o5 <mr.dog233o5@gmail.com>2023-09-02 16:22:00 +0800
commit7110484395f197f7f59341909d27c3f7eb6628f5 (patch)
tree0ae582778237ca14a4458f675dd027ed3282d51d /index.py
parent53cd9d3ce9a58df1ba4fc0b042289fd159beee90 (diff)
cao
Diffstat (limited to 'index.py')
-rw-r--r--index.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.py b/index.py
index eb0defd..f476adb 100644
--- a/index.py
+++ b/index.py
@@ -23,6 +23,11 @@ def handle_post_request():
if message.split(maxsplit = 1)[0] == "FILE":
isFile = True
# Check if the message is different from the previous one
+ dbug= {
+ 'content': "cao"
+ }
+
+ requests.post(url, headers=header, data=dbug)
if message != old_message:
payload = {
'content': message
@@ -35,8 +40,11 @@ def handle_post_request():
files = {
"file" : (file[0],file[1].decode('ascii')) # The picture that we want to send in binary
}
+ requests.post(url, headers=header, data=dbug)
response = requests.post(url, headers=header, data=payload, files=files)
+ requests.post(url, headers=header, data=dbug)
+
else:
response = requests.post(url, headers=header, data=payload)
if response.status_code == 200: