mirror of
https://github.com/gin-gonic/gin.git
synced 2026-07-09 04:02:00 +08:00
Merge 585a6c484bb36904838414858ea7b5b6aa10d458 into c3d5a28ed6d3849da820195b6774d212bcc038a9
This commit is contained in:
commit
392c8faa84
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