Skip to content

Commit

Permalink
Closing HTTP connections!
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Oct 20, 2023
1 parent f0886a6 commit f01a013
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public Map<String,Object> getCoreStatus() throws IOException {
Map<String,Object> obj = gson.fromJson(EntityUtils.toString(entity), Map.class);
Map<String,Object> status = (Map<String,Object>) obj.get("status");
Map<String,Object> coreStatus = (Map<String,Object>) status.get("ols4_entities");
response.close();
httpClient.close();
return coreStatus;
}
}
Expand Down

0 comments on commit f01a013

Please sign in to comment.