always use fileUTF in example.FileServer
This commit is contained in:
parent
75a88a4c41
commit
41929aca4a
1 changed files with 1 additions and 1 deletions
|
@ -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 = "<pre>" + r.replace("<", "<").replace(">", ">") + "</pre>";
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue