unjs / cookie-es

๐Ÿช Cookie and Set-Cookie parser and serializer
Other
151 stars 10 forks source link

fix(parser): be able to support cookies with no value (defaults true) #24

Closed rishi-raj-jain closed 5 months ago

rishi-raj-jain commented 7 months ago

๐Ÿ”— Linked issue

fixes #17

โ“ Type of change

๐Ÿ“š Description

In this PR, I update the logic to default to true for all the keys that do not have a value associated with them.

๐Ÿ“ Checklist

pi0 commented 5 months ago

Thanks for this PR. While this allows supporting Set-Cookie format in some sort, it won't be spec compliant since the Cookie parsing is different.

I've made a new proposal lets track via https://github.com/unjs/cookie-es/issues/33