Skip to content

Commit

Permalink
Don't use system dependent charset
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Mar 1, 2022
1 parent 96c1fbd commit 6e4b68d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,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 +32,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 6e4b68d

Please sign in to comment.