set webhook content type
This commit is contained in:
@ -21,6 +21,7 @@ export async function sendWebhook<T extends WebhookAction>(action: T, data: Webh
|
|||||||
body: JSON.stringify(data),
|
body: JSON.stringify(data),
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
'x-webhook-action': action
|
'x-webhook-action': action
|
||||||
},
|
},
|
||||||
keepalive: false
|
keepalive: false
|
||||||
|
Reference in New Issue
Block a user