Skip to content

Commit

Permalink
Don't use system dependent charset
Browse files Browse the repository at this point in the history
Fixes quarkusio#23991

(cherry picked from commit ad36396)
  • Loading branch information
stuartwdouglas authored and gsmet committed Mar 1, 2022
1 parent 33782c0 commit 09e0430
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.io.Closeable;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
Expand Down Expand Up @@ -31,7 +31,7 @@
*/
public class FileSystemStaticHandler implements Handler<RoutingContext>, Closeable {

private static final String DEFAULT_CONTENT_ENCODING = Charset.defaultCharset().name();
private static final String DEFAULT_CONTENT_ENCODING = StandardCharsets.UTF_8.name();

private static final ReentrantLock ROOT_CREATION_LOCK = new ReentrantLock();

Expand Down

0 comments on commit 09e0430

Please sign in to comment.