From 41929aca4ad11a763b74a18a6acdd2e7623fb629 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 9 Jul 2022 11:25:02 +0200 Subject: [PATCH] always use fileUTF in example.FileServer --- src/de/tudbut/tryumph/example/FileServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/tudbut/tryumph/example/FileServer.java b/src/de/tudbut/tryumph/example/FileServer.java index 640d2c5..e292b7b 100644 --- a/src/de/tudbut/tryumph/example/FileServer.java +++ b/src/de/tudbut/tryumph/example/FileServer.java @@ -62,7 +62,7 @@ public class FileServer implements IRequestCatcher, RequestHandler.Listener { if(new File(s + "/index.html").exists()) s += "/index.html"; if(!s.endsWith(".html") && !s.endsWith(".htm") && !(new File(s).isDirectory())) { - r = request.context.file(s, data.getBoolean("autoindex") ? request.realPath : null); + r = request.context.fileUTF(s, data.getBoolean("autoindex") ? request.realPath : null); r = "
" + r.replace("<", "<").replace(">", ">") + "
"; } else