- From: Luca Casonato <notifications@github.com>
- Date: Mon, 01 Nov 2021 03:26:45 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 1 November 2021 10:26:58 UTC
@lucacasonato commented on this pull request. > @@ -6160,6 +6186,14 @@ method steps are to <a for=Headers>append</a> (<var>name</var>, <var>value</var> <a for=Headers>header list</a>. </ol> +<p>The <dfn export for=Headers method><code>getSetCookie()</code></dfn> method steps are: + +<ol> + <li><p>Return <a lt=value for=header>values</a> of all <a for=/>headers</a> in <a>this</a>'s + <a for=Headers>header list</a> whose <a for=header>name</a> is a <a>byte-case-insensitive</a> match + for `<code>set-cookie</code>`, in order. +</ol> > This needs a step that returns an empty list when there are no such headers. Why? `[].filter((header) => header.name === "set-cookie").length === 0`. Does filtering on lists in specs not return an empty list for no matches? -- 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/pull/1346#discussion_r740108041
Received on Monday, 1 November 2021 10:26:58 UTC