1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +00:00
Gerasimos (Makis) Maropoulos
2020-03-24 02:12:10 +02:00
parent 0d3770380f
commit a694266c63
3 changed files with 41 additions and 1 deletions

View File

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