Skip to content

Commit ed4821e

Browse files
committed
Specify identity encoding for range requests. Fixes #747.
1 parent 2e45674 commit ed4821e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

fetch.bs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3651,6 +3651,16 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
36513651
<!-- Technically this only applies to HTTP/1.1 and up -->
36523652
</ol>
36533653

3654+
<li>
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">
3661+
<a href="https://jakearchibald.github.io/accept-encoding-range-test/">Many servers</a>
3662+
mistakenly ignore `<code>Range</code>` headers if a non-identity encoding is accepted.
3663+
36543664
<li>
36553665
<p>Modify <var>httpRequest</var>'s
36563666
<a for=request>header list</a> per HTTP.
@@ -3661,7 +3671,7 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
36613671
`<code>Connection</code>`,
36623672
`<code>DNT</code>`, and
36633673
`<code>Host</code>`,
3664-
are to be <a for="header list">appended</a> if necessary.
3674+
are to be <a for="header list">appended</a> if necessary, unless already specified.
36653675

36663676
<p>`<code>Accept</code>`,
36673677
`<code>Accept-Charset</code>`, and

0 commit comments

Comments
 (0)