Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
olegz committed Oct 12, 2023
1 parent b858028 commit 74d0d96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private HttpServletRequest prepareRequest(HttpRequestMessage<Optional<String>> r


request.getBody().ifPresent(body -> {
Charset charsetEncoding = request.getHeaders().containsKey("content-encoding")
Charset charsetEncoding = request.getHeaders() != null && request.getHeaders().containsKey("content-encoding")
? Charset.forName(request.getHeaders().get("content-encoding"))
: StandardCharsets.UTF_8;
httpRequest.setContent(body.getBytes(charsetEncoding));
Expand Down

0 comments on commit 74d0d96

Please sign in to comment.