Skip to content
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

Allow Cookie.parse to parse multiple cookies sent in a request's cookie header #410

Open
information-security opened this issue Apr 24, 2024 · 0 comments

Comments

@information-security
Copy link

When the browser sends a request to the server, it folds all the cookies separated by ; character in one header named cookie. i.e. CookieName1=Value1;CookieName2=Value2;.
Given that, It would be great if Cookie.parse() could handle this use-case. Currently, I have to manually split the cookie string and call Cookie.parse() in a loop to get an array of cookies. But a parse(string): Cookie[]|Cookie function would be of great asset IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant