Limitation on set-cookie in responseHeaders #744
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Winter Of Code 4.0
Describe the bug
There is a limitation when setting cookies header (set-cookie) in the responseHeader.
You cannot set more than one cookie (in an elegant way)
To Reproduce
const responseHeaders = new Header();
responseHeaders.append('set-cookie', 'cookie1...');
responseHeaders.append('set-cookie', 'cookie2...');
return responseHeaders.toJSON();
Only one cookie will be set
Expected behavior
Be able to set multiple cookie in one responseHeader.
The text was updated successfully, but these errors were encountered: