diff --git a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java index e8bfa8ab9a..12bf90c9d6 100644 --- a/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/example/src/main/java/io/netty/example/http/file/HttpStaticFileServerHandler.java @@ -262,7 +262,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler&\\\"]*"); private static void sendListing(ChannelHandlerContext ctx, File dir, String dirPath) { FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK); @@ -270,7 +270,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler\r\n") - .append("") + .append("<html><head><meta charset='utf-8' /><title>") .append("Listing of: ") .append(dirPath) .append("\r\n")