diff --git a/gin.go b/gin.go index 1965a429..fb9472e4 100644 --- a/gin.go +++ b/gin.go @@ -669,6 +669,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