1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-17 21:08:05 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-10-27 07:34:28 -07:00
parent 72bfbc3492
commit dfd06fa394

View File

@ -427,6 +427,7 @@ func (c *context) File(file string) error {
if err != nil {
return ErrNotFound
}
defer f.Close()
if fi, err = f.Stat(); err != nil {
return err
}