Added missing return in the example
This commit is contained in:
parent
575973863f
commit
51b6e05b0d
@ -79,6 +79,7 @@ public class HttpStaticFileServerHandler extends SimpleChannelUpstreamHandler {
|
||||
}
|
||||
if (!file.isFile()) {
|
||||
sendError(ctx, HttpResponseStatus.FORBIDDEN);
|
||||
return;
|
||||
}
|
||||
|
||||
RandomAccessFile raf;
|
||||
|
Loading…
Reference in New Issue
Block a user