From 8084ee45389c96768f5e7246ca8eefd7a6f98bab Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Mon, 18 Jan 2021 20:18:26 +0100 Subject: [PATCH] added HEAD Method to the handlers --- funcs/funcs.go | 2 ++ 1 file changed, 2 insertions(+) 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) } } }