mirror of
https://github.com/gin-gonic/gin.git
synced 2025-04-06 03:57:46 +08:00
fix bug : gin config RemoveExtraSlash
do not work when use static path
This commit is contained in:
parent
1a2bc0e7cb
commit
585a6c484b
1
gin.go
1
gin.go
@ -519,6 +519,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