unjs / cookie-es

🍪 Cookie and Set-Cookie parser and serializer
Other
151 stars 10 forks source link

Parse multiple cookies with same name #51

Open pi0 opened 2 months ago

pi0 commented 2 months ago

Describe the feature

Background: https://github.com/jshttp/cookie/issues/60 (found it in an issue reported by @atinux)

Incoming cookie value can have the same name repeated and we pick the first.

We can allow them in two possible ways: