Skip to content

Commit aaada1f

Browse files
committed
Editorial: share a conditional in fetch response handover
Also clean up an earlier internalResponse initialization.
1 parent 5629d15 commit aaada1f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

fetch.bs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,8 +4591,8 @@ steps:
45914591
</ol>
45924592

45934593
<li><p>Let <var>internalResponse</var> be <var>response</var>, if <var>response</var> is a
4594-
<a>network error</a>, and <var>response</var>'s <a for="filtered response">internal response</a>
4595-
otherwise.
4594+
<a>network error</a>; otherwise <var>response</var>'s
4595+
<a for="filtered response">internal response</a>.
45964596

45974597
<li>
45984598
<p>If <var>internalResponse</var>'s <a for=response>URL list</a> <a for=list>is empty</a>, then
@@ -4752,17 +4752,16 @@ steps:
47524752

47534753
<p class=note>This covers the case of <var>response</var> being a <a>network error</a>.
47544754

4755-
<li><p>Let <var>responseStatus</var> be 0 if <var>fetchParams</var>'s
4756-
<a for="fetch params">request</a>'s <a for=request>mode</a> is "<code>navigate</code>" and
4757-
<var>response</var>'s <a for=response>has-cross-origin-redirects</a> is true; otherwise
4758-
<var>response</var>'s <a for=response>status</a>.
4755+
<li><p>Let <var>responseStatus</var> be 0.
47594756

47604757
<li>
47614758
<p>If <var>fetchParams</var>'s <a for="fetch params">request</a>'s <a for=request>mode</a> is
47624759
not "<code>navigate</code>" or <var>response</var>'s
47634760
<a for=response>has-cross-origin-redirects</a> is false:
47644761

47654762
<ol>
4763+
<li><p>Set <var>responseStatus</var> to <var>response</var>'s <a for=response>status</a>.
4764+
47664765
<li><p>Let <var>mimeType</var> be the result of
47674766
<a for="header list">extracting a MIME type</a> from <var>response</var>'s
47684767
<a for=response>header list</a>.

0 commit comments

Comments
 (0)