Skip to content

Commit

Permalink
set accept header parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rsehr committed Dec 10, 2024
1 parent 08c64c6 commit 573285d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,8 +547,8 @@ private boolean sendResponseViaRest(String method, String url, String json) {
}

try (CloseableHttpClient client = HttpClients.createDefault()) {
httpBase.setHeader("Accept", "application/json");
if (StringUtils.isNotBlank(json)) {
httpBase.setHeader("Accept", "application/json");
httpBase.setHeader("Content-type", "application/json");
httpBase.setEntity(new StringEntity(json));
}
Expand Down

0 comments on commit 573285d

Please sign in to comment.