-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Manually passed Cookie
header overrides http.CookieJar
cookies
#597
Comments
There are several options here:
Changing from option 1 to another option is an incompatible change, but it’s not likely to be a problem in practice. Applications are not blocked by this issue. An application can implement whatever logic it wants by constructing a cookie header before the call to dial. There is a similar situation with subprotocols. It is an error to specify subprotocols in the dialer and the header. Let’s wait for new maintainer to make call on the right approach. Applications are not blocked by current code. |
Cookie
header overrides http.CookieJar
cookiesCookie
header overrides http.CookieJar
cookies
Description
If you manually pass
Cookie
header inDialContext(..., http.Header)
, cookies fromDialer.Jar
will be overwritten.Steps to Reproduce
Possible reason
From the first look I would say that this is happening because the part of code which is responsible for setting up all the passed headers ignores already applied
Cookie
header fromhttp.CookieJar
.The text was updated successfully, but these errors were encountered: