diff --git a/gin.go b/gin.go index f9813e1d..a11059e1 100644 --- a/gin.go +++ b/gin.go @@ -670,6 +670,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