1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-24 08:22:21 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-10-16 07:51:33 -07:00
parent e2928d9155
commit 9ea3463d2c

View File

@ -394,6 +394,7 @@ func serveFile(dir, file string, c *Context) error {
if err != nil {
return NewHTTPError(http.StatusNotFound)
}
defer f.Close()
fi, _ := f.Stat()
if fi.IsDir() {