mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 21:07:03 +00:00
fix https://github.com/kataras/iris/issues/1473 and add test for https://github.com/kataras/iris/issues/1468 https://github.com/kataras/iris/pull/1474 https://github.com/kataras/iris/pull/1475
Former-commit-id: 3e7d927761a5d5559b65ea3f91b94e3dc523a187
This commit is contained in:
@@ -1382,8 +1382,8 @@ func (ctx *context) Next() { // or context.Next(ctx)
|
||||
// it sends a Status Not Found (404) to the client and it stops the execution.
|
||||
func (ctx *context) NextOr(handlers ...Handler) bool {
|
||||
if next := ctx.NextHandler(); next != nil {
|
||||
next(ctx)
|
||||
ctx.Skip() // skip this handler from the chain.
|
||||
next(ctx)
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user