fix @thinkerou review

This commit is contained in:
Dmitry Kutakov 2019-02-12 11:18:21 +03:00
parent 223a8fb97b
commit eb12b74fb8

2
gin.go
View File

@ -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)