🐛 (webhook) Fix form encoded request parsing
Was not working when setting `Content-Type` header to `application/x-www-form-urlencoded`
This commit is contained in:
@@ -140,10 +140,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