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 ad36396
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 ad36396

Please sign in to comment.