Skip to content

Commit

Permalink
Correct Response's statusText check
Browse files Browse the repository at this point in the history
This has been wrong for a decade (see 3864756) and nobody noticed until now.

Fixes #1794.
  • Loading branch information
annevk committed Dec 12, 2024
1 parent 0ce45ae commit 276aac1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -8273,8 +8273,8 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredire
<li><p>If <var>init</var>["{{ResponseInit/status}}"] is not in the range 200 to 599, inclusive,
then <a>throw</a> a {{RangeError}}.

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

<li><p>Set <var>response</var>'s <a for=Response>response</a>'s <a for=response>status</a> to
<var>init</var>["{{ResponseInit/status}}"].
Expand Down Expand Up @@ -9072,14 +9072,14 @@ Alexey Proskuryakov,
Andreas Kling,
Andrés Gutiérrez,
Andrew Sutherland,
Andrew Williams,<!-- recvfrom; GitHub -->
Andrew Williams<!-- recvfrom; GitHub -->,
Ángel González,
Anssi Kostiainen,
Arkadiusz Michalski,
Arne Johannessen,
Artem Skoretskiy,
Arthur Barstow,
Arthur Sonzogni, <!-- ArthurSonzogni; GitHub -->
Arthur Sonzogni<!-- ArthurSonzogni; GitHub -->,
Asanka Herath,
Axel Rauschmayer,
Ben Kelly,
Expand Down Expand Up @@ -9118,6 +9118,7 @@ Ehsan Akhgari,
Emily Stark,
Eric Lawrence,
Eric Orth,
Feng Yu<!-- F3n67u; GitHub -->,
François Marier,
Frank Ellerman,
Frederick Hirsch,
Expand Down

0 comments on commit 276aac1

Please sign in to comment.