diff --git a/gin.go b/gin.go index 02a1062c..63e31f71 100644 --- a/gin.go +++ b/gin.go @@ -519,6 +519,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