-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Wrong cookie merging #996
Comments
For the record if you dump the request headers with
So it is ... technically merged ;). edit: I seem to have run some experiment that "proved" the below but later investigation suggest it is just not true and I probably got confused due to the example being more complex than necessary 🤦
|
I recently looked into this while trying to answer a support question with the In order to simplify things for the new HTTP API, I think we should abandon any smart merging when specifying the Otherwise, if they want to do any merging, then they should use the |
It seems that while confusing for us - no users have come around to say something in the 4 years of this issue. The new http design already specifies that this will just overwrite cookies as @imiric proposes above. So I will close this |
This script (copied from here):
will produce
And I haven't tested how passing
cookies
orjar
in thehttp.Params
object plays into the whole mess... Since we already have way too many ways to specify cookies, we should at least fix them so merging the cookies works like how most users would expect it to work, and we should also explicitly document the precedence order and verify it with tests...The text was updated successfully, but these errors were encountered: