summaryrefslogtreecommitdiff
path: root/internal/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/router/router.go')
-rw-r--r--internal/router/router.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/router/router.go b/internal/router/router.go
index 47835e5bc..b6991f97f 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()