Skip to content

Commit

Permalink
Use UTF_8 for lib://URI responses
Browse files Browse the repository at this point in the history
  • Loading branch information
perkinslr committed Dec 2, 2021
1 parent d8baea2 commit 0efc78d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public static CompletableFuture<String> processRequest(
}
responseHeaders.put(":Status", "200");
try {
c.complete(new String(stream.readAllBytes(), StandardCharsets.UTF_16));
c.complete(new String(stream.readAllBytes(), StandardCharsets.UTF_8));
return c;
} catch (IOException e) {
responseHeaders.put(":Status", "500 Internal Exception");
Expand Down

0 comments on commit 0efc78d

Please sign in to comment.