Merge 585a6c484bb36904838414858ea7b5b6aa10d458 into 8763f33c65f7df8be5b9fe7504ab7fcf20abb41d

This commit is contained in:
MGu 2025-03-23 09:00:36 +08:00 committed by GitHub
commit 211bd7039f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

1
gin.go
View File

@ -656,6 +656,7 @@ func (engine *Engine) handleHTTPRequest(c *Context) {
if engine.RemoveExtraSlash { if engine.RemoveExtraSlash {
rPath = cleanPath(rPath) rPath = cleanPath(rPath)
c.Request.URL.Path = rPath
} }
// Find root of the tree for the given HTTP method // Find root of the tree for the given HTTP method