diff options
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r-- | modules/middleware/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 58b4f7497b..cbc0b0cf3c 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -172,7 +172,7 @@ func Contexter() macaron.Handler { ctx.Data["PageStartTime"] = time.Now() // Get user from session if logined. - ctx.User = auth.SignedInUser(ctx.Req.Header, ctx.Session) + ctx.User = auth.SignedInUser(ctx.Req.Request, ctx.Session) if ctx.User != nil { ctx.IsSigned = true |