We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f45fe6b commit 19c4959Copy full SHA for 19c4959
2 files changed
src/modules/contacts/httpClient/prepareParamsForRequest/index.ts
@@ -36,7 +36,7 @@ export const prepareParamsForRequest: RequestInterceptor = (config) => {
36
};
37
}
38
39
- if (body && typeof body === 'object' && !Buffer.isBuffer(body)) {
+ if (body && typeof body === 'object' && !(body instanceof FormData)) {
40
return {
41
...config,
42
body: formatKeys(body) as Record<string, string | number | boolean>,
src/smsapi/httpClient/index.ts
@@ -6,7 +6,7 @@ export interface RequestConfig {
6
url: string;
7
method: string;
8
headers: Record<string, string>;
9
- body?: Record<string, unknown> | string | Buffer | FormData;
+ body?: Record<string, unknown> | string | FormData;
10
params?: QueryParams;
11
12
0 commit comments