diff --git a/gin.go b/gin.go index 2e033bf3..276acf0a 100644 --- a/gin.go +++ b/gin.go @@ -702,6 +702,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