1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-27 22:38:25 +02:00

Context#StaticContent signature changed

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-27 21:03:35 -07:00
parent a2d757eddc
commit 28ec39daaa
3 changed files with 23 additions and 25 deletions

View File

@@ -97,8 +97,9 @@ func StaticFromConfig(config StaticConfig) echo.MiddlewareFunc {
}
return next.Handle(c)
}
fi, _ = f.Stat() // Index file stat
}
return c.ServeContent(f)
return c.ServeContent(f, fi.Name(), fi.ModTime())
})
}
}