mirror of
https://github.com/mjl-/mox.git
synced 2025-01-27 14:55:56 +03:00
fix previous commit, go fmt
This commit is contained in:
parent
666f84edea
commit
00c8dacc56
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ func Login(ctx context.Context, log mlog.Log, sessionAuth SessionAuth, kind, coo
|
||||||
|
|
||||||
// Add session cookie.
|
// Add session cookie.
|
||||||
http.SetCookie(w, &http.Cookie{
|
http.SetCookie(w, &http.Cookie{
|
||||||
Name: kind + "session",
|
Name: kind + "session",
|
||||||
// Cookies values are ascii only, so we keep the account name query escaped.
|
// Cookies values are ascii only, so we keep the account name query escaped.
|
||||||
Value: string(sessionToken) + " " + url.QueryEscape(accountName),
|
Value: string(sessionToken) + " " + url.QueryEscape(accountName),
|
||||||
Path: cookiePath,
|
Path: cookiePath,
|
||||||
|
|
Loading…
Reference in a new issue