Skip to content

Commit

Permalink
explicitly use UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Mar 6, 2024
1 parent 6e48b25 commit a5c9532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/cryostat/JsonRequestFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public void filter(ContainerRequestContext requestContext) throws IOException {
return;
}

requestContext.setEntityStream(new ByteArrayInputStream(json.getBytes()));
requestContext.setEntityStream(
new ByteArrayInputStream(json.getBytes(StandardCharsets.UTF_8)));
}
}

Expand Down

0 comments on commit a5c9532

Please sign in to comment.