Re: [whatwg/fetch] Refactor forbidden request-headers (PR #1541)

@annevk commented on this pull request.



> @@ -6455,8 +6495,13 @@ method steps are to <a for=Headers>append</a> (<var>name</var>, <var>value</var>
  <li><p>If <a>this</a>'s <a for=Headers>guard</a> is "<code>immutable</code>", then <a>throw</a> a
  {{TypeError}}.
 
- <li><p>Otherwise, if <a>this</a>'s <a for=Headers>guard</a> is "<code>request</code>" and
- <var>name</var> is a <a>forbidden header name</a>, return.
+ <li>
+  <p>Otherwise, if <a>this</a>'s <a for=Headers>guard</a> is "<code>request</code>" and
+  (<var>name</var>, ``) is a <a>forbidden request-header</a>, return.
+
+  <p class=note>Passing a dummy <a>header value</a> to <a>forbidden request-header</a> ought not to
+  have any negative repercussions.
+  <!-- XXX Under what circumstances can this return statement be reached? -->

Presumably as part of https://github.com/whatwg/fetch/issues/1543.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1541#discussion_r1028284648
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1541/review/1188595243@github.com>

Received on Monday, 21 November 2022 16:43:42 UTC