diff options
author | slene <vslene@gmail.com> | 2014-03-15 22:34:33 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-15 22:34:33 +0800 |
commit | b9e57e41cee83f257caefec76a276dd143cec153 (patch) | |
tree | e8cb2c03c2112e5bf38b6c0aa29625ac828ede44 /modules | |
parent | ca86433402463fb423b75d1527407c5203aba5ce (diff) | |
download | gitea-b9e57e41cee83f257caefec76a276dd143cec153.tar.gz gitea-b9e57e41cee83f257caefec76a276dd143cec153.zip |
clean code
Diffstat (limited to 'modules')
-rw-r--r-- | modules/middleware/context.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index dccd3351c7..7a1dba3d65 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -58,10 +58,11 @@ func InitContext() martini.Handler { ctx := &Context{ c: c, // p: p, - Req: r, - Res: res, - Data: data, - Render: rd, + Req: r, + Res: res, + Session: session, + Data: data, + Render: rd, } // Get user from session if logined. |