From 585a6c484bb36904838414858ea7b5b6aa10d458 Mon Sep 17 00:00:00 2001 From: goodaye <47457296+goodaye@users.noreply.github.com> Date: Wed, 6 Oct 2021 09:49:15 +0800 Subject: [PATCH] fix bug : gin config `RemoveExtraSlash` do not work when use static path --- gin.go | 1 + 1 file changed, 1 insertion(+) 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