webhook #271 work

This commit is contained in:
Jokob-sk
2023-07-02 08:52:57 +10:00
parent d1b1f078aa
commit 7720bba5dc
3 changed files with 4 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ def check_config():
def send (msg: noti_struc):
# limit = 1024 * 1024 # 1MB limit (1024 bytes * 1024 bytes = 1MB)
limit = 1024 * 1 # 1MB limit (1024 bytes * 1024 bytes = 1MB)
limit = conf.WEBHOOK_SIZE
# use data type based on specified payload type
if conf.WEBHOOK_PAYLOAD == 'json':