File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
modules/contacts/httpClient/prepareParamsForRequest Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const prepareParamsForRequest: RequestInterceptor = (config) => {
3636 } ;
3737 }
3838
39- if ( body && typeof body === 'object' && ! Buffer . isBuffer ( body ) ) {
39+ if ( body && typeof body === 'object' && ! ( body instanceof FormData ) ) {
4040 return {
4141 ...config ,
4242 body : formatKeys ( body ) as Record < string , string | number | boolean > ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export interface RequestConfig {
66 url : string ;
77 method : string ;
88 headers : Record < string , string > ;
9- body ?: Record < string , unknown > | string | Buffer | FormData ;
9+ body ?: Record < string , unknown > | string | FormData ;
1010 params ?: QueryParams ;
1111}
1212
You can’t perform that action at this time.
0 commit comments