fix previous commit, go fmt

This commit is contained in:
Mechiel Lukkien 2024-04-11 23:22:03 +02:00
parent 666f84edea
commit 00c8dacc56
No known key found for this signature in database

View file

@ -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,