From 24516b84c24d944b82d6cf79e9c88f762c8e132d Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 2 Aug 2023 09:28:20 +0100 Subject: [PATCH] [bugfix] handle HEAD requests more elegantly (#2055) Signed-off-by: kim --- internal/router/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/router/router.go b/internal/router/router.go index 47835e5b..b6991f97 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -181,6 +181,7 @@ func New(ctx context.Context) (Router, error) { // create the actual engine here -- this is the core request routing handler for gts engine := gin.New() engine.MaxMultipartMemory = maxMultipartMemory + engine.HandleMethodNotAllowed = true // set up IP forwarding via x-forward-* headers. trustedProxies := config.GetTrustedProxies()