Skip to content

Commit

Permalink
Fix for issue redouane59#379
Browse files Browse the repository at this point in the history
  • Loading branch information
apptaro authored Jun 8, 2022
1 parent 715d978 commit da970cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public <T> Optional<T> makeRequest(Verb verb, String url, Map<String, String> he
}
}
if (body != null && verb.isPermitBody()) {
request.setPayload(body);
request.setPayload(body.getBytes(StandardCharset.UTF_8));
if (!request.getHeaders().containsKey("Content-Type")) {
request.addHeader("Content-Type", "application/json");
}
Expand Down

0 comments on commit da970cc

Please sign in to comment.