diff --git a/context.go b/context.go index 7df87e14..58bac608 100644 --- a/context.go +++ b/context.go @@ -105,8 +105,9 @@ func (c *Context) Handler() HandlerFunc { // See example in GitHub. func (c *Context) Next() { c.index++ - for ; c.index < int8(len(c.handlers)); c.index++ { + for c.index < int8(len(c.handlers)) { c.handlers[c.index](c) + c.index++ } }