From eb12b74fb8f4b1c334b8a4c9fae957c414f7fb0e Mon Sep 17 00:00:00 2001 From: Dmitry Kutakov Date: Tue, 12 Feb 2019 11:18:21 +0300 Subject: [PATCH] fix @thinkerou review --- gin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gin.go b/gin.go index 5f7b70cb..6e5ea6d7 100644 --- a/gin.go +++ b/gin.go @@ -355,7 +355,7 @@ func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) { // This can be done by setting c.Request.URL.Path to your new target. // Disclaimer: You can loop yourself to death with this, use wisely. func (engine *Engine) HandleContext(c *Context) { - var oldIndexValue = c.index + oldIndexValue := c.index c.reset() engine.handleHTTPRequest(c)