diff --git a/funcs/funcs.go b/funcs/funcs.go index 763e1ab..3f646a3 100644 --- a/funcs/funcs.go +++ b/funcs/funcs.go @@ -68,8 +68,10 @@ func StaticFS(r gin.IRouter, files fs.FS) { h := makeHandler(files, fn.Name()) if fn.Name() == "index.html" { r.GET("/", h) + r.HEAD("/", h) } r.GET("/"+fn.Name(), h) + r.HEAD("/"+fn.Name(), h) } } }