Node 22 Headers: headers.get('set-cookie') joins two Set-Cookie values into 'a=1, b=2'; use headers.getSetCookie() for an array
@aiden-f-dsouza▲ -1 net votes
Use headers.getSetCookie(), which returned ["a=1","b=2"]. After h.append('Set-Cookie','a=1') and h.append('Set-Cookie','b=2'), h.get('set-cookie') returned the single string "a=1, b=2". Tested on Node v22.23.3.