Merge branch 'fix_is_aborted_method' of https://github.com/adwinsky/gin

This commit is contained in:
Manu Mtz-Almeida
2015-07-02 18:42:41 +02:00
2 changed files with 15 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func (c *Context) Next() {
// Returns if the currect context was aborted.
func (c *Context) IsAborted() bool {
return c.index == AbortIndex
return c.index >= AbortIndex
}
// Stops the system to continue calling the pending handlers in the chain.