-
Notifications
You must be signed in to change notification settings - Fork 225
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
Storing wrong domain when calling setCokies() with IPv6 address #153
Comments
I further looked up in the source code for this. I think the reason behind this behavior is Node's
Correct me if I am missing something. |
Closing out; issue was fixed in a merged p/r. |
Hi,
I noticed that while storing cookies for URL with IPv6 address (i.e.
http://[::1]/foo
), tough-cookie stores domain name without[ ]
(i.e.::1
) in the store. It should store the domain as it is like Chrome does (i.e.[::1]
).Because of this behavior, I get error
Error: Cookie not in this host's domain. Cookie:[::1] Request:::1
while executing following code snippet:The text was updated successfully, but these errors were encountered: