You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* To [=process response=] for |response|, run these substeps:
2009
-
1. If |response|'s [=response/type=] is "<code>error</code>", or |response|'s [=response/status=] is not an [=ok status=], reject |responsePromise| with a `TypeError`.
2009
+
1. If |response|'s [=response/type=] is "<code>error</code>", or |response|'s [=response/status=] is not an [=ok status=] or is `206`, reject |responsePromise| with a `TypeError`.
2010
2010
1. Else if |response|'s [=response/header list=] contains a [=header=][=header/named=] \``Vary`\`, then:
2011
2011
1. Let |fieldValues| be the [=list=] containing the elements corresponding to the [=http/field-values=] of the [=Vary=] header.
2012
2012
1. [=list/For each=] |fieldValue| of |fieldValues|:
1. Set |r| to the associated [=Request/request=] of the result of invoking the initial value of {{Request}} as constructor with |request| as its argument. If this [=throws=] an exception, return [=a promise rejected with=] that exception.
2058
2058
1. If |r|'s [=request/url=]'s [=url/scheme=] is not one of "`http`" and "`https`", return [=a promise rejected with=] a `TypeError`.
2059
+
1. If |response|'s associated [=Response/response=]'s [=response/status=] is `206`, return [=a promise rejected with=] a `TypeError`.
2059
2060
1. If |response|'s associated [=Response/response=]'s [=response/header list=] contains a <a>header</a>[=header/named=] \`<code>Vary</code>\`, then:
2060
2061
1. Let |fieldValues| be the [=list=] containing the [=list/items=] corresponding to the [=Vary=] header's [=http/field-values=].
2061
2062
1. [=list/For each=] |fieldValue| in |fieldValues|:
* To [=process response=] for |response|, run these substeps:
1665
-
1. If |response|'s [=response/type=] is "<code>error</code>", or |response|'s [=response/status=] is not an [=ok status=], reject |responsePromise| with a `TypeError`.
1665
+
1. If |response|'s [=response/type=] is "<code>error</code>", or |response|'s [=response/status=] is not an [=ok status=] or is `206`, reject |responsePromise| with a `TypeError`.
1666
1666
1. Else if |response|'s [=response/header list=] contains a [=header=][=header/named=] \``Vary`\`, then:
1667
1667
1. Let |fieldValues| be the [=list=] containing the elements corresponding to the [=http/field-values=] of the [=Vary=] header.
1668
1668
1. [=list/For each=] |fieldValue| of |fieldValues|:
1. Set |r| to the associated [=Request/request=] of the result of invoking the initial value of {{Request}} as constructor with |request| as its argument. If this [=throws=] an exception, return [=a promise rejected with=] that exception.
1714
1714
1. If |r|'s [=request/url=]'s [=url/scheme=] is not one of "`http`" and "`https`", return [=a promise rejected with=] a `TypeError`.
1715
+
1. If |response|'s associated [=Response/response=]'s [=response/status=] is `206`, return [=a promise rejected with=] a `TypeError`.
1715
1716
1. If |response|'s associated [=Response/response=]'s [=response/header list=] contains a <a>header</a>[=header/named=] \`<code>Vary</code>\`, then:
1716
1717
1. Let |fieldValues| be the [=list=] containing the [=list/items=] corresponding to the [=Vary=] header's [=http/field-values=].
1717
1718
1. [=list/For each=] |fieldValue| in |fieldValues|:
0 commit comments