fix(oauth): escape json string so it can be set by http package
This commit is contained in:
@@ -125,7 +125,7 @@ func (c DefaultOAuthClient) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
http.SetCookie(w, &http.Cookie{
|
||||
Name: "__Host-OAUTH-" + strings.ToUpper(c.Name),
|
||||
Value: string(cv),
|
||||
Value: url.PathEscape(string(cv)),
|
||||
SameSite: http.SameSiteStrictMode,
|
||||
Path: "/",
|
||||
Secure: true,
|
||||
|
||||
Reference in New Issue
Block a user