set path for language cookie

This commit is contained in:
Tan Jiang 2016-11-14 13:59:23 +08:00
parent 74714fe74a
commit 49d07ff581

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)
} }