diff --git a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java index 7fb68a7c2f..c4e72ad881 100644 --- a/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java +++ b/src/main/java/org/jboss/netty/example/http/file/HttpStaticFileServerHandler.java @@ -79,6 +79,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler { } if (!file.isFile()) { sendError(ctx, HttpResponseStatus.FORBIDDEN); + return; } RandomAccessFile raf;