Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support multiple set-cookie headers in response (#8)
Fixes and ege case with multiple set-cookie headers in a single Response - multiple `set-cookie` headers in a single `Response` is valid - comma delimited `set-cookie` values in a single header are invalid (or rather they will not be picked up and set by the browser) - the res.headers interator returns the equivalent of `res.headers.get('set-cookie')` for the value, which is a comma delimited string (and thus invalid) - this fix will use `res.headers.getAll('set-cookie')` which returns an array of strings which is a valid value in `response.setHeader` https://nodejs.org/docs/latest-v18.x/api/http.html#responsesetheadername-value
- Loading branch information