diff options
Diffstat (limited to 'modules/context/private.go')
-rw-r--r-- | modules/context/private.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/context/private.go b/modules/context/private.go index 24f50fa471..f621dd6839 100644 --- a/modules/context/private.go +++ b/modules/context/private.go @@ -11,6 +11,7 @@ import ( "code.gitea.io/gitea/modules/graceful" "code.gitea.io/gitea/modules/process" + "code.gitea.io/gitea/modules/web/middleware" ) // PrivateContext represents a context for private routes @@ -62,7 +63,7 @@ func PrivateContexter() func(http.Handler) http.Handler { ctx := &PrivateContext{ Context: &Context{ Resp: NewResponse(w), - Data: map[string]interface{}{}, + Data: middleware.GetContextData(req.Context()), }, } defer ctx.Close() |