Avoid duplicate SetContextValue call (#33564)

And fix FIXME and TODO
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-02-12 14:25:46 +08:00
1 parent 06f1065636
commit f58f5bb3d8
6 files changed
+3 -7

No files matched your search

-1
View File
@@ -166,7 +166,6 @@ func Contexter() func(next http.Handler) http.Handler {
ctx.PageData = map[string]any{}
ctx.Data["PageData"] = ctx.PageData
ctx.Base.SetContextValue(WebContextKey, ctx) // FIXME: this should be removed because NewWebContext should already set it
ctx.Csrf = NewCSRFProtector(csrfOpts)
// get the last flash message from cookie