Skip to content
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

More eargerly send RST_STREAM on redirects #638

Merged
merged 1 commit into from Nov 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 6 additions & 11 deletions fetch.bs
Expand Up @@ -3116,14 +3116,11 @@ optional <i>CORS flag</i> and <i>CORS-preflight flag</i>, run these steps:

<ol>
<li>
<p>If <var>actualResponse</var>'s <a for=response>status</a> is not
<code>303</code>, <var>request</var>'s <a for=request>body</a> is not
<a for=body>done</a>, and the
<a>connection</a> uses HTTP/2, then user agents may, and are even
encouraged to, transmit an <code>RST_STREAM</code> frame.
<p>If <var>actualResponse</var>'s <a for=response>status</a> is not <code>303</code>,
<var>request</var>'s <a for=request>body</a> is not null, and the <a>connection</a> uses HTTP/2,
then user agents may, and are even encouraged to, transmit an <code>RST_STREAM</code> frame.

<p class=note><code>303</code> is excluded as certain communities ascribe special status to
it.
<p class=note><code>303</code> is excluded as certain communities ascribe special status to it.

<li><p>Let <var>location</var> be the result of <a>extracting header list values</a> given
`<code>Location</code>` and <var>actualResponse</var>'s <a for=response>header list</a>.
Expand Down Expand Up @@ -3821,8 +3818,7 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
<ol>
<li><p>Let <var>aborted</var> be the termination's aborted flag.

<li><p>If <var>connection</var> is an HTTP/2 connection, then transmit an
"<code>RST_STREAM</code>" to cancel the underlying stream.
<li><p>If <var>connection</var> uses HTTP/2, then transmit an <code>RST_STREAM</code> frame.

<li><p>If <var>aborted</var> is set, then return an <a>aborted network error</a>.

Expand Down Expand Up @@ -3983,8 +3979,7 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
<li><p>Otherwise, if <var>stream</var> is <a for=ReadableStream>readable</a>,
<a abstract-op>error</a> <var>stream</var> with a <code>TypeError</code>.

<li><p>If <var>connection</var> is an HTTP/2 connection, then transmit an
"<code>RST_STREAM</code>" to cancel the underlying stream.
<li><p>If <var>connection</var> uses HTTP/2, then transmit an <code>RST_STREAM</code> frame.

<li>
<p>Otherwise, the user agent should close <var>connection</var> unless it would be bad for
Expand Down