mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
fix typo
This commit is contained in:
parent
2efcfcecdd
commit
78da5a1367
|
@ -132,7 +132,7 @@ def send_to_discord_webhook(data: Optional[DiscordMessage], metadata: DiscordMes
|
||||||
header['Content-Type'] = 'application/json'
|
header['Content-Type'] = 'application/json'
|
||||||
standard_args = dict(headers=header)
|
standard_args = dict(headers=header)
|
||||||
if metadata.method == "POST":
|
if metadata.method == "POST":
|
||||||
req = requests.Request("POST", data.webhook_url + (("&" if "?" in data.webhook_url else "&")+"wait=true" if AUTO_SUPPRESSION_ENABLED else ""), data=repr(data), **standard_args)
|
req = requests.Request("POST", data.webhook_url + (("&" if "?" in data.webhook_url else "?")+"wait=true" if AUTO_SUPPRESSION_ENABLED else ""), data=repr(data), **standard_args)
|
||||||
elif metadata.method == "DELETE":
|
elif metadata.method == "DELETE":
|
||||||
req = requests.Request("DELETE", metadata.webhook_url, **standard_args)
|
req = requests.Request("DELETE", metadata.webhook_url, **standard_args)
|
||||||
elif metadata.method == "PATCH":
|
elif metadata.method == "PATCH":
|
||||||
|
|
Loading…
Reference in a new issue