Merge pull request #1076 from reasonerjt/dev

set path for language cookie
This commit is contained in:
Daniel Jiang 2016-11-14 14:52:45 +08:00 committed by GitHub
commit cf5420d6e8

View File

@ -75,7 +75,7 @@ func (b *BaseController) Prepare() {
Name: "language",
Value: lang,
HttpOnly: true,
Domain: "/",
Path: "/",
}
http.SetCookie(b.Ctx.ResponseWriter, cookies)
}