Added missing return in the example

This commit is contained in:
Trustin Lee 2009-06-16 10:14:43 +00:00
parent 575973863f
commit 51b6e05b0d

View File

@ -79,6 +79,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler {
} }
if (!file.isFile()) { if (!file.isFile()) {
sendError(ctx, HttpResponseStatus.FORBIDDEN); sendError(ctx, HttpResponseStatus.FORBIDDEN);
return;
} }
RandomAccessFile raf; RandomAccessFile raf;