diff --git a/gin.go b/gin.go index 220f0401..69166a72 100644 --- a/gin.go +++ b/gin.go @@ -358,11 +358,8 @@ 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) { - oldIndexValue := c.index c.reset() engine.handleHTTPRequest(c) - - c.index = oldIndexValue } func (engine *Engine) handleHTTPRequest(c *Context) {