rest-client-sdk 7.6.0 → 7.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1060,7 +1060,11 @@ var AbstractClient = /*#__PURE__*/function () {
|
|
|
1060
1060
|
var _this6 = this;
|
|
1061
1061
|
var params = requestParams;
|
|
1062
1062
|
var baseHeaders = {};
|
|
1063
|
-
|
|
1063
|
+
|
|
1064
|
+
// a FormData body must let fetch set the Content-Type itself,
|
|
1065
|
+
// with the multipart/form-data boundary
|
|
1066
|
+
var isFormDataBody = FormData !== undefined && params.body instanceof FormData;
|
|
1067
|
+
if ((params.method !== 'GET' || params.method !== 'GET' && params.method !== 'DELETE') && !isFormDataBody) {
|
|
1064
1068
|
baseHeaders = {
|
|
1065
1069
|
'Content-Type': 'application/json'
|
|
1066
1070
|
};
|