Skip to content

Commit

Permalink
Return 405 as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Jan 31, 2024
1 parent 783c548 commit f6c13c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web_ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ func GetEngine() (*gin.Engine, error) {
"resource": ctx.Request.URL.Path},
).Info("Served Request")
})
engine.HandleMethodNotAllowed = true
return engine, nil
}

Expand Down

0 comments on commit f6c13c7

Please sign in to comment.