Skip to content

Commit

Permalink
Resolves review remark
Browse files Browse the repository at this point in the history
Signed-off-by: Jannis Jung <[email protected]>
  • Loading branch information
jannisjung committed Jul 26, 2024
1 parent 4a6ecc0 commit c43e4d4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ private String getContentFromDelegatedEndpoint() throws IOException {
HttpGet request = new HttpGet("http://localhost:8090/valueA");
CloseableHttpResponse resp = client.execute(request);

return EntityUtils.toString(resp.getEntity());
String content = EntityUtils.toString(resp.getEntity());
client.close();
return content;
}

private static String getResponseBody() {
Expand Down

0 comments on commit c43e4d4

Please sign in to comment.