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 c88ce9af45..71224888bb 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 @@ -261,7 +261,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelInboundHandler&\\\"]*"); private static void sendListing(ChannelHandlerContext ctx, File dir, String dirPath) { FullHttpResponse response = new DefaultFullHttpResponse(HTTP_1_1, OK); @@ -269,7 +269,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")