Skip to content

Commit 276aac1

Browse files
committed
Correct Response's statusText check
This has been wrong for a decade (see 3864756) and nobody noticed until now. Fixes #1794.
1 parent 0ce45ae commit 276aac1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

fetch.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8273,8 +8273,8 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredire
82738273
<li><p>If <var>init</var>["{{ResponseInit/status}}"] is not in the range 200 to 599, inclusive,
82748274
then <a>throw</a> a {{RangeError}}.
82758275

8276-
<li><p>If <var>init</var>["{{ResponseInit/statusText}}"] does not match the
8277-
<a spec=http1>reason-phrase</a> token production, then <a>throw</a> a {{TypeError}}.
8276+
<li><p>If <var>init</var>["{{ResponseInit/statusText}}"] is not the empty string and does not match
8277+
the <a>reason-phrase</a> token production, then <a>throw</a> a {{TypeError}}.
82788278

82798279
<li><p>Set <var>response</var>'s <a for=Response>response</a>'s <a for=response>status</a> to
82808280
<var>init</var>["{{ResponseInit/status}}"].
@@ -9072,14 +9072,14 @@ Alexey Proskuryakov,
90729072
Andreas Kling,
90739073
Andrés Gutiérrez,
90749074
Andrew Sutherland,
9075-
Andrew Williams,<!-- recvfrom; GitHub -->
9075+
Andrew Williams<!-- recvfrom; GitHub -->,
90769076
Ángel González,
90779077
Anssi Kostiainen,
90789078
Arkadiusz Michalski,
90799079
Arne Johannessen,
90809080
Artem Skoretskiy,
90819081
Arthur Barstow,
9082-
Arthur Sonzogni, <!-- ArthurSonzogni; GitHub -->
9082+
Arthur Sonzogni<!-- ArthurSonzogni; GitHub -->,
90839083
Asanka Herath,
90849084
Axel Rauschmayer,
90859085
Ben Kelly,
@@ -9118,6 +9118,7 @@ Ehsan Akhgari,
91189118
Emily Stark,
91199119
Eric Lawrence,
91209120
Eric Orth,
9121+
Feng Yu<!-- F3n67u; GitHub -->,
91219122
François Marier,
91229123
Frank Ellerman,
91239124
Frederick Hirsch,

0 commit comments

Comments
 (0)