diff --git a/gin.go b/gin.go index 0761c14d..3f2dad0e 100644 --- a/gin.go +++ b/gin.go @@ -656,6 +656,7 @@ func (engine *Engine) handleHTTPRequest(c *Context) { if engine.RemoveExtraSlash { rPath = cleanPath(rPath) + c.Request.URL.Path = rPath } // Find root of the tree for the given HTTP method