Skip to content

Commit

Permalink
Specify identity encoding for range requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakearchibald authored and annevk committed Jun 6, 2018
1 parent 2e45674 commit 2f3d04d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -3652,8 +3652,19 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
</ol>

<li>
<p>Modify <var>httpRequest</var>'s
<a for=request>header list</a> per HTTP.
<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. Do not
<a for="header list">append</a> a given <a>header</a> if <var>httpRequest</var>'s
<a for=request>header list</a> <a for="header list">contains</a> that <a>header</a>'s
<a for=header>name</a>.

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

0 comments on commit 2f3d04d

Please sign in to comment.