mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
SetImmutable for sessions and context's values. https://github.com/iris-contrib/community-board/issues/5
New package "memstore" created, read it to see how I made it. Former-commit-id: 9edc344b938786b2ef68defec03c44259a2d539c
This commit is contained in:
@@ -173,9 +173,8 @@ func (h *routerHandler) HandleRequest(ctx context.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
handlers, params, mustRedirect := t.Entry.ResolveRoute(ctx)
|
||||
handlers, mustRedirect := t.Entry.ResolveRoute(ctx)
|
||||
if len(handlers) > 0 {
|
||||
ctx.SetParams(params)
|
||||
ctx.SetHandlers(handlers)
|
||||
ctx.Handlers()[0](ctx)
|
||||
// to remove the .Next(maybe not a good idea), reduces the performance a bit:
|
||||
|
||||
Reference in New Issue
Block a user