From c129e8353c4a6a98e2ba84cc2d5cd51add141474 Mon Sep 17 00:00:00 2001 From: HannesOberreiter Date: Mon, 8 Apr 2024 16:34:52 +0200 Subject: [PATCH] fix: :bug: fix slack --- server/api/helpers/utils/send-message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/helpers/utils/send-message.js b/server/api/helpers/utils/send-message.js index 5c5e50e..a016ba3 100644 --- a/server/api/helpers/utils/send-message.js +++ b/server/api/helpers/utils/send-message.js @@ -66,7 +66,7 @@ const handleSlack = () => { method: 'POST', body: JSON.stringify(data), headers: { - 'Content-Type': 'application/x-www-form-urlencoded', + 'Content-Type': 'application/json; charset=utf-8', Authorization: `Bearer ${TOKEN}`, }, }); @@ -98,7 +98,7 @@ const handleWebhook = () => { function buildHeaders() { const headers = { - 'Content-Type': 'application/json', + 'Content-Type': 'application/json; charset=utf-8', }; if (TOKEN) {