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
headers.cookie shouldn't be replaced #125
Comments
+1 |
I just got burned by this as well, was very confusing |
This was a problem for |
papandreou
added a commit
to papandreou/request
that referenced
this issue
Feb 8, 2012
papandreou
added a commit
to papandreou/request
that referenced
this issue
Feb 8, 2012
If both a cookie jar and headers.cookie are specified, include both in the request, separated by '; '. Also fixed uppercase header name: self.headers.Cookie => self.headers.cookie.
did this get merged? can we close? |
mikeal
added a commit
that referenced
this issue
Feb 9, 2012
Fix cookie jar/headers.cookie collision (#125)
fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had some old code that pre-dates request's cookie jar support:
However, after I updated request it stopped working because now
headers.cookie
is always overwritten unlessjar: false
is specified:The fix was trivial, but I'm reporting it anyway because I think it's a wtf. In my opinion there should be a check for whether
self.headers.cookie
already exists, and if so, append to it. Or at least it shouldn't do anything if the global cookie jar is empty.My guess is that the current behavior breaks a bunch of proxying use cases where cookies are involved.
I can whip up a pull request, but it would be nice to hear if everyone else is on board with this?
The text was updated successfully, but these errors were encountered: