rest-client-sdk 6.7.1 → 6.7.2
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.es.js +7 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/AbstractClient.ts +6 -3
package/dist/index.es.js
CHANGED
|
@@ -1912,9 +1912,13 @@ var AbstractClient = /*#__PURE__*/function () {
|
|
|
1912
1912
|
var _this6 = this;
|
|
1913
1913
|
|
|
1914
1914
|
var params = requestParams;
|
|
1915
|
-
var baseHeaders = {
|
|
1916
|
-
|
|
1917
|
-
|
|
1915
|
+
var baseHeaders = {};
|
|
1916
|
+
|
|
1917
|
+
if (params.method !== 'GET' || params.method !== 'GET' && params.method !== 'DELETE') {
|
|
1918
|
+
baseHeaders = {
|
|
1919
|
+
'Content-Type': 'application/json'
|
|
1920
|
+
};
|
|
1921
|
+
}
|
|
1918
1922
|
|
|
1919
1923
|
if (accessToken) {
|
|
1920
1924
|
baseHeaders.Authorization = "".concat(this.sdk.config.authorizationType, " ").concat(accessToken);
|