Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http/cookiejar: The result of Cookies cannot be SetCookies #50874

Closed
molon opened this issue Jan 28, 2022 · 1 comment
Closed

net/http/cookiejar: The result of Cookies cannot be SetCookies #50874

molon opened this issue Jan 28, 2022 · 1 comment

Comments

@molon
Copy link

molon commented Jan 28, 2022

for _, e := range selected {
cookies = append(cookies, &http.Cookie{Name: e.Name, Value: e.Value})
}

Why here is a simple cookie that only contains Name and Value.
Because sometimes we need to directly operate the jar, such cookies will be of little value in many scenarios.

@seankhliao
Copy link
Member

Duplicate of #39420

@seankhliao seankhliao marked this as a duplicate of #39420 Jan 28, 2022
@golang golang locked and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants