🐛 (http) Accept body content other than json and form-data
This commit is contained in:
@ -203,7 +203,7 @@ export const executeWebhook = async (
|
|||||||
headers: headers ?? {},
|
headers: headers ?? {},
|
||||||
...(basicAuth ?? {}),
|
...(basicAuth ?? {}),
|
||||||
json: !isFormData && body && isJson ? body : undefined,
|
json: !isFormData && body && isJson ? body : undefined,
|
||||||
body: (isFormData && body ? body : undefined) as any,
|
body: body && (isFormData || !isJson) ? body : undefined,
|
||||||
timeout: isNotDefined(env.CHAT_API_TIMEOUT)
|
timeout: isNotDefined(env.CHAT_API_TIMEOUT)
|
||||||
? false
|
? false
|
||||||
: params.timeout && params.timeout !== defaultTimeout
|
: params.timeout && params.timeout !== defaultTimeout
|
||||||
|
Reference in New Issue
Block a user