Closed lewispham closed 4 years ago
From the docs (https://github.com/jshttp/cookie#cookieparsestr-options):
Parse an HTTP Cookie header string and returning an object of all cookie name-value pairs.
The Cookie
header does not have httponly and secure flags like you are showing; that is the Set-Cookie
header, which this module does not provide a parsing function for.
It looks like cookie.parse is bypassing all values whose dont follow the
key=value
format. But shouldn't they be parsed with a boolean output instead?Reproduce
Current output
Expected output