expectCookiesLike Fails when cookies are set via setHeaders('Set-Cookie', cookieArray)
#287
Labels
bug
Something isn't working
setHeaders('Set-Cookie', cookieArray)
#287
Describe the bug
When multiple cookies are set via the
res.setHeader('Set-Cookie', [cookie1, cookie2, ...cookieN])
format, as described in the node docs,lightcookie
incorrectly parses the cookies that come in the response, even though a browser will proper interpret them.To Reproduce
pnpm install
pnpm test
GET /two-cookies
routeI kept the reproduction as barebones as possible using just pactum and express.
Expected behavior
Honestly, I'd say this should be something for
lightcookie
to fix in its parsing, but seeing as the project hasn't been touched since 2017, I figured this would be a better place to patch around it.Screenshots
If applicable, add screenshots to help explain your problem.
Software (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: