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