🐛 Fix form urlencoded content-type webhooks
This commit is contained in:
@ -192,10 +192,13 @@ export const executeWebhook =
|
|||||||
headers,
|
headers,
|
||||||
...basicAuth,
|
...basicAuth,
|
||||||
json:
|
json:
|
||||||
contentType !== 'x-www-form-urlencoded' && body && isJson
|
!contentType?.includes('x-www-form-urlencoded') && body && isJson
|
||||||
|
? body
|
||||||
|
: undefined,
|
||||||
|
form:
|
||||||
|
contentType?.includes('x-www-form-urlencoded') && body
|
||||||
? body
|
? body
|
||||||
: undefined,
|
: undefined,
|
||||||
form: contentType === 'x-www-form-urlencoded' && body ? body : undefined,
|
|
||||||
body: body && !isJson ? body : undefined,
|
body: body && !isJson ? body : undefined,
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user