1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

fix Context.Proceed called on last handler in the chain

relative: https://github.com/kataras/iris/issues/1581#issuecomment-673958152
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-14 11:53:38 +03:00
parent 28b39efa7d
commit 5f235993ee
2 changed files with 31 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ var (
firstUseRouterResponse = "userouter1"
// Use inline handler, no the `writeHandler`,
// because it will be overriden by `secondUseRouterHandler` otherwise,
// because it will be overridden by `secondUseRouterHandler` otherwise,
// look `UseRouter:context.UpsertHandlers` for more.
firstUseRouterHandler = func(ctx iris.Context) {
ctx.WriteString(firstUseRouterResponse)