Ok... What code you prefer. 404 or 403?

> Am 28.04.2014 um 12:56 schrieb Tim Fox <notifications@github.com>:
> 
> In vertx-core/src/main/java/org/vertx/java/core/net/impl/DefaultNetSocket.java:
> 
> > @@ -170,6 +170,9 @@ public NetSocket sendFile(String filename) {
> >    @Override
> >    public NetSocket sendFile(String filename, final Handler<AsyncResult<Void>> resultHandler) {
> >      File f = new File(PathAdjuster.adjust(vertx, filename));
> > +    if (f.isDirectory()) {
> > +      throw new IllegalArgumentException("filename must point to a file and not to a directory");
> in Netsocket it would be appropriate to throw an exception
> 
> —
> Reply to this email directly or view it on GitHub.