From eeeca4ed4edf0a50382ec6d9d30b0c99604db8e8 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 21 Jun 2025 23:45:37 +0200 Subject: [PATCH] set webhook content type --- src/util/webhook.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/webhook.ts b/src/util/webhook.ts index 92915b1..fdf218f 100644 --- a/src/util/webhook.ts +++ b/src/util/webhook.ts @@ -21,6 +21,7 @@ export async function sendWebhook(action: T, data: Webh body: JSON.stringify(data), method: 'POST', headers: { + 'Content-Type': 'application/json', 'x-webhook-action': action }, keepalive: false