- From: Nathan Friedly <notifications@github.com>
- Date: Mon, 13 Mar 2017 15:37:22 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 13 March 2017 22:38:17 UTC
Hi, I have a set-cookie-parser library and I got [a report](https://github.com/nfriedly/set-cookie-parser/issues/13#issuecomment-286227566) that it fails when parsing fetch responses that contain multiple `Set-Cookie` headers. Looking through the spec and the output, I see that it's returning a [combined value](https://fetch.spec.whatwg.org/#concept-header-value-combined) for both `headers.get()` and the now-deprecated `headers.getAll()`. IMHO, `getAll()` should return an array, but if it's too late for that then perhaps a new method could be added that returned an array, or alternatively an extra parameter to headers.get() to control it's output? (Or is it already possible and I'm just missing something?) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/506
Received on Monday, 13 March 2017 22:38:17 UTC