Skip to content

Commit

Permalink
Specify identity encoding for range requests. Fixes #747.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald committed Jun 1, 2018
1 parent 2e45674 commit ed4821e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3651,6 +3651,16 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
<!-- Technically this only applies to HTTP/1.1 and up -->
</ol>

<li>
<p>If <var>httpRequest</var>'s <a for=request>header list</a> <a for="header list">contains</a>
`<code>Range</code>`, then <a for="header list">append</a>
`<code>Accept-Encoding</code>`/`<code>identity</code>` to <var>httpRequest</var>'s
<a for=request>header list</a>.

<p class="note no-backref">
<a href="https://jakearchibald.github.io/accept-encoding-range-test/">Many servers</a>
mistakenly ignore `<code>Range</code>` headers if a non-identity encoding is accepted.

<li>
<p>Modify <var>httpRequest</var>'s
<a for=request>header list</a> per HTTP.
Expand All @@ -3661,7 +3671,7 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
`<code>Connection</code>`,
`<code>DNT</code>`, and
`<code>Host</code>`,
are to be <a for="header list">appended</a> if necessary.
are to be <a for="header list">appended</a> if necessary, unless already specified.

<p>`<code>Accept</code>`,
`<code>Accept-Charset</code>`, and
Expand Down

0 comments on commit ed4821e

Please sign in to comment.