sveltekit-adapter-aws
sveltekit-adapter-aws copied to clipboard
Correctly handle multiple set-cookie headers
This PR changes how set-cookies headers with multiple values are returned. Previously, the code looks for Array types in the headers property, but multiple values are actually stored as a comma delimited list.
Following the adapter-netlify approach, the set-cookie-parser package is used here to split the set-cookie header while all other headers are left unchanged.
I have added a version of the PR which includes some Vitest tests in #33, if that's useful.