-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cookie values incorrectly parsed #85
Comments
Hi, actually it's that's not a bug. The value you're printing is the result of the implicit method storedCookies.forEach((key, cookie) => {
var value = cookie.value; // then do what you want with the value
}); |
Would that mean when you print another cookie it just gives you the value and not the header ? |
Ah you are correct, thank you I was concerned it was sending the entire string back as part of the header. Laravel provides a new CSRF token with each request, they are constantly rotating, so I was looking for a package like yours that will keep them up to date, but haven't quite got it working yet. So far it seems like a good package, thank you for the effort |
I don't think there should be any issue with that, requests/lib/src/requests.dart Line 261 in e5192e9
|
Describe the bug
Cookie values are not correctly parsed
To Reproduce
Steps to reproduce the behavior:
Hit any backend that provides a CSRF or XSRF token including data such as an expiry date
Expected behavior
The key is parsed correctly, but the value grabs the entire string, including "Set-Cookie"... it should only grab the string after the key name
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: