Re: [whatwg/fetch] Override "Accept-Language" header if WebDriver BiDi emulated language is present. (PR #1869)

@annevk commented on this pull request.



> @@ -4659,6 +4659,20 @@ the response. [[!HTTP-CACHING]]
    <var>request</var>'s <a for=request>header list</a>.
   </ol>
 
+ <li>
+  <p>If <var>request</var>'s <a for=request>header list</a>
+  <a for="header list">does not contain</a> `<code>Accept-Language</code>` and <var>request</var>'s
+  <a for=request>client</a> is non-null:
+
+  <ol>
+   <li><p>Let <var>emulatedLanguage</var> be the <a>WebDriver BiDi emulated language</a> for
+   <var>request</var>'s <a for=request>client</a>.
+
+   <li><p>If <var>emulatedLanguage</var> is non-null, then <a for="header list">append</a>
+   (`<code>Accept-Language</code>, <var>emulatedLanguage</var>, <a>isomorphic encoded</a>)

There's a ` missing. I also find this confusing as this could also be read as a three-tuple.

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

Message ID: <whatwg/fetch/pull/1869/review/3481527472@github.com>

Received on Wednesday, 19 November 2025 08:52:48 UTC