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", Name: "language",
Value: lang, Value: lang,
HttpOnly: true, HttpOnly: true,
Domain: "/", Path: "/",
} }
http.SetCookie(b.Ctx.ResponseWriter, cookies) http.SetCookie(b.Ctx.ResponseWriter, cookies)
} }