Permalink
Browse files

file_filter does not return 404 if file isn't found.

  • Loading branch information...
1 parent eb2784c commit d67be1c6f6aadddd1e3eb2053d1589ebc228c6e2 @dgrijalva dgrijalva committed May 29, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 static_file/file_filter.go
@@ -58,11 +58,9 @@ func (f *Filter) FilterRequest(req *falcore.Request) (res *http.Response) {
}
} else {
file.Close()
- return falcore.SimpleResponse(req.HttpRequest, 404, nil, "File not found\n")
}
} else {
- falcore.Debug("Can't open %v: %v", asset_path, err)
- res = falcore.SimpleResponse(req.HttpRequest, 404, nil, "File not found\n")
+ falcore.Finest("Can't open %v: %v", asset_path, err)
}
return
}

0 comments on commit d67be1c

Please sign in to comment.