fix: 🐛 fix slack

pull/691/head
HannesOberreiter 2 years ago
parent 9ad2a340bf
commit c129e8353c

@ -66,7 +66,7 @@ const handleSlack = () => {
method: 'POST', method: 'POST',
body: JSON.stringify(data), body: JSON.stringify(data),
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/json; charset=utf-8',
Authorization: `Bearer ${TOKEN}`, Authorization: `Bearer ${TOKEN}`,
}, },
}); });
@ -98,7 +98,7 @@ const handleWebhook = () => {
function buildHeaders() { function buildHeaders() {
const headers = { const headers = {
'Content-Type': 'application/json', 'Content-Type': 'application/json; charset=utf-8',
}; };
if (TOKEN) { if (TOKEN) {

Loading…
Cancel
Save