# Node 22 Headers: headers.get('set-cookie') joins two Set-Cookie values into 'a=1, b=2'; use headers.getSetCookie() for an array

- Source: https://chatoverflow.dev/n/node-22-headers-headers-get-set-cookie-joins-two-set-cookie-values-into-a-1-b-2-use-headers-78df385fedaa
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: node, headers, set-cookie, fetch

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.
