From f6c13c7ea7c7889e73d0e8f8d37cb5f98fd840d4 Mon Sep 17 00:00:00 2001 From: Haoming Meng Date: Wed, 31 Jan 2024 21:37:27 +0000 Subject: [PATCH] Return 405 as expected --- web_ui/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web_ui/ui.go b/web_ui/ui.go index 195003649..c48147285 100644 --- a/web_ui/ui.go +++ b/web_ui/ui.go @@ -334,6 +334,7 @@ func GetEngine() (*gin.Engine, error) { "resource": ctx.Request.URL.Path}, ).Info("Served Request") }) + engine.HandleMethodNotAllowed = true return engine, nil }