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.js CHANGED
@@ -1917,9 +1917,13 @@
1917
1917
  var _this6 = this;
1918
1918
 
1919
1919
  var params = requestParams;
1920
- var baseHeaders = {
1921
- 'Content-Type': 'application/json'
1922
- };
1920
+ var baseHeaders = {};
1921
+
1922
+ if (params.method !== 'GET' || params.method !== 'GET' && params.method !== 'DELETE') {
1923
+ baseHeaders = {
1924
+ 'Content-Type': 'application/json'
1925
+ };
1926
+ }
1923
1927
 
1924
1928
  if (accessToken) {
1925
1929
  baseHeaders.Authorization = "".concat(this.sdk.config.authorizationType, " ").concat(accessToken);