Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Avery-Dunn committed Jul 16, 2024
1 parent b822d43 commit eeee815
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,9 @@ public ManagedIdentityResponse getManagedIdentityResponse(
IHttpResponse response;

try {
HttpRequest httpRequest = StringHelper.isNullOrBlank(managedIdentityRequest.getBodyAsString()) ?
new HttpRequest(managedIdentityRequest.method,
HttpRequest httpRequest = new HttpRequest(managedIdentityRequest.method,
managedIdentityRequest.computeURI().toString(),
managedIdentityRequest.headers) :
new HttpRequest(managedIdentityRequest.method,
managedIdentityRequest.computeURI().toString(),
managedIdentityRequest.headers,
managedIdentityRequest.getBodyAsString());
managedIdentityRequest.headers);
response = serviceBundle.getHttpHelper().executeHttpRequest(httpRequest, managedIdentityRequest.requestContext(), serviceBundle);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ public void createManagedIdentityRequest(String resource) {
managedIdentityRequest.headers.put("ContentType", "application/x-www-form-urlencoded");
managedIdentityRequest.headers.put("Metadata", "true");

managedIdentityRequest.bodyParameters = new HashMap<>();
managedIdentityRequest.bodyParameters.put("resource", Collections.singletonList(resource));

managedIdentityRequest.queryParameters = new HashMap<>();
managedIdentityRequest.queryParameters.put("resource", Collections.singletonList(resource));
}
Expand Down

0 comments on commit eeee815

Please sign in to comment.