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()