Skip to content

Commit

Permalink
🐛 (http) Accept body content other than json and form-data
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jul 11, 2024
1 parent 1bc217d commit c5794a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const executeWebhook = async (
headers: headers ?? {},
...(basicAuth ?? {}),
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)
? false
: params.timeout && params.timeout !== defaultTimeout
Expand Down

0 comments on commit c5794a0

Please sign in to comment.