Skip to content

Specify identity encoding for range requests. Fixes #747. #751

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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