@nsshunt/stsrest01client 1.0.6 → 1.0.7

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.
@@ -3611,7 +3611,10 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
3611
3611
  } else {
3612
3612
  accessToken = await __privateGet(this, _options).GetAccessToken();
3613
3613
  }
3614
- const requestConfig = new stsutils.STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet(this, _DUMMY_USER)).withData(filters ? filters : resource ? resource : void 0);
3614
+ let requestConfig = new stsutils.STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet(this, _DUMMY_USER));
3615
+ if (!(httpVerb.localeCompare("get") === 0 || httpVerb.localeCompare("head") === 0)) {
3616
+ requestConfig.withData(filters ? filters : resource ? resource : void 0);
3617
+ }
3615
3618
  if (isNode && __privateGet(this, _options).agentManager) {
3616
3619
  requestConfig.withAgentManager(__privateGet(this, _options).agentManager);
3617
3620
  }