- From: Anne van Kesteren <notifications@github.com>
- Date: Mon, 21 Nov 2022 04:38:03 -0800
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 21 November 2022 12:38:16 UTC
@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? -->
Unless someone knows I'll file a follow-up issue on this and link that instead. It seems like this could be an assert.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1541#pullrequestreview-1188148159
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/pull/1541/review/1188148159@github.com>
Received on Monday, 21 November 2022 12:38:16 UTC