Skip to content

Commit ce88a76

Browse files
committed
add fallback to http algorithm
1 parent ec498bd commit ce88a76

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fetch.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5232,6 +5232,11 @@ these steps:
52325232
<!-- not resetting actualResponse since it's no longer used anyway -->
52335233
</ol>
52345234

5235+
<li><p>If <var>response</var> is a <a>network error</a> and <var>request</var> has the
5236+
<a>https-upgrades</a> flag set, set <var>request</var>'s <a for=/>URL</a> <a for=url>scheme</a>
5237+
to <code>http</code> and set <var>response</var> to the result of running <a>HTTP-redirect fetch</a>
5238+
given <var>fetchParams</var> and <var>response</var>.
5239+
52355240
<li><p>Return <var>response</var>. <span class=note>Typically <var>actualResponse</var>'s
52365241
<a for=response>body</a>'s <a for=body>stream</a> is still being enqueued to after
52375242
returning.</span>

0 commit comments

Comments
 (0)