You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/tests/node_modules/undici/lib/fetch/headers.js:430
for (const value of cookies) {
^
TypeError: cookies is not iterable
at get [headers map sorted] (~/tests/node_modules/undici/lib/fetch/headers.js:430:29)
at ~/tests/node_modules/undici/lib/fetch/headers.js:476:21
at Headers Iterator.next (~/tests/node_modules/undici/lib/fetch/util.js:731:22)
at ~/tests/fetch-undici-2.js:18:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Environment
Undici 5.19.1
Node v18.14.0
The text was updated successfully, but these errors were encountered:
sbellone
changed the title
res.headers.entries() throws when the response contains a Set-Cookie
Headers iterator throws when the response contains a Set-CookieFeb 16, 2023
Bug Description
#1915 introduced a bug on Headers iterator, which now throws an error when the response contains a
Set-Cookie
header.(Also,
getSetCookie()
returns an empty array for me)Reproducible By
Expected Behavior
See arrays of key/values logged on the console (it works with Undici 5.18.0):
Logs & Screenshots
Environment
Undici 5.19.1
Node v18.14.0
The text was updated successfully, but these errors were encountered: