diff --git a/gin.go b/gin.go index cab00e9..0778197 100644 --- a/gin.go +++ b/gin.go @@ -210,6 +210,9 @@ func (group *RouterGroup) Static(p, root string) { group.GET(p, func(c *Context) { fileServer.ServeHTTP(c.Writer, c.Request) }) + group.HEAD(p, func(c *Context) { + fileServer.ServeHTTP(c.Writer, c.Request) + }) } func (group *RouterGroup) combineHandlers(handlers []HandlerFunc) []HandlerFunc {