mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-21 12:27:15 +08:00
Merge 585a6c484bb36904838414858ea7b5b6aa10d458 into bb824731032856460aa3ffc23bd90e11bf7d5199
This commit is contained in:
commit
b2438ffda2
1
gin.go
1
gin.go
@ -670,6 +670,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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user