Skip to content

Commit 2f3d04d

Browse files
jakearchibaldannevk
authored andcommitted
Specify identity encoding for range requests
Tests: web-platform-tests/wpt#11291. Fixes #747.
1 parent 2e45674 commit 2f3d04d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

fetch.bs

+13-2
Original file line numberDiff line numberDiff line change
@@ -3652,8 +3652,19 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
36523652
</ol>
36533653

36543654
<li>
3655-
<p>Modify <var>httpRequest</var>'s
3656-
<a for=request>header list</a> per HTTP.
3655+
<p>If <var>httpRequest</var>'s <a for=request>header list</a> <a for="header list">contains</a>
3656+
`<code>Range</code>`, then <a for="header list">append</a>
3657+
`<code>Accept-Encoding</code>`/`<code>identity</code>` to <var>httpRequest</var>'s
3658+
<a for=request>header list</a>.
3659+
3660+
<p class="note no-backref"><a href="https://jakearchibald.github.io/accept-encoding-range-test/">Many servers</a>
3661+
mistakenly ignore `<code>Range</code>` headers if a non-identity encoding is accepted.
3662+
3663+
<li>
3664+
<p>Modify <var>httpRequest</var>'s <a for=request>header list</a> per HTTP. Do not
3665+
<a for="header list">append</a> a given <a>header</a> if <var>httpRequest</var>'s
3666+
<a for=request>header list</a> <a for="header list">contains</a> that <a>header</a>'s
3667+
<a for=header>name</a>.
36573668

36583669
<p class="note no-backref">It would be great if we could make this more normative
36593670
somehow. At this point <a for=/>headers</a> such as

0 commit comments

Comments
 (0)