Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.08k stars 423 forks source link

Preserve multiple `Set-Cookie` headers #1278

Open jordanbtucker opened 1 week ago

jordanbtucker commented 1 week ago

This PR ungroups Set-Cookie headers since each header should appear independently. According to MDN:

To send multiple cookies, multiple Set-Cookie headers should be sent in the same response.

For example, the following is correct:

Set-Cookie: a=b
Set-Cookie: c=d

While the following is incorrect:

Set-Cookie: a=b,c=d

This PR achieves this by:

Fixes #722