|
@@ -220,10 +220,11 @@ func SetLanguageCookie(w http.ResponseWriter, r *http.Request) error {
|
|
lang := r.Form.Get("lang")
|
|
lang := r.Form.Get("lang")
|
|
if lang != "" && lang != clang {
|
|
if lang != "" && lang != clang {
|
|
http.SetCookie(w, &http.Cookie{
|
|
http.SetCookie(w, &http.Cookie{
|
|
- Name: "lang",
|
|
|
|
- Value: lang,
|
|
|
|
Expires: time.Now().Add(365 * 24 * time.Hour),
|
|
Expires: time.Now().Add(365 * 24 * time.Hour),
|
|
HttpOnly: true,
|
|
HttpOnly: true,
|
|
|
|
+ Name: "lang",
|
|
|
|
+ Path: "/",
|
|
|
|
+ Value: lang,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
return nil
|
|
return nil
|