-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cookie max-age is wrong #70
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
Comments
Salut, do you have a server or test I can look at to see if the fix will works? I will look at the spec.... Thanks! |
I'll try to get one, but that might be difficult. If you look at the RFC, max-age is definitively optional: http://tools.ietf.org/html/rfc6265#section-4.1.2.2 Maybe AsyncHttpProviderUtils.parseCookie could:
WDYT? PS: If you agree with this, I can make a pull request. |
thanks! |
cs-workco
pushed a commit
to cs-workco/async-http-client
that referenced
this issue
Apr 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salut,
AsyncHttpProviderUtils.parseCookie sets a -1 max-age for both expired regular cookies and session cookies (that don't have a max-age).
max-age should be an Integer (set to null for session cookies) instead of an int, so that one can tell expired and session cookies apart.
Cheers,
Stephane
The text was updated successfully, but these errors were encountered: