summaryrefslogtreecommitdiff
path: root/ext/fetch/23_response.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-03-16 09:30:43 -0400
committerGitHub <noreply@github.com>2022-03-16 14:30:43 +0100
commit45b3aa22c0adbea5fbfbd572eac172a60b79a5e9 (patch)
tree4648e7c7c3fab3945b9fe764fed1c697239481c5 /ext/fetch/23_response.js
parent426ca98527185a68afb54c0cc943b61cfa851cd5 (diff)
feat(ext/fetch): Allow Response status 101 (#13969)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r--ext/fetch/23_response.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fetch/23_response.js b/ext/fetch/23_response.js
index 4dc56dd8f..03f8c276b 100644
--- a/ext/fetch/23_response.js
+++ b/ext/fetch/23_response.js
@@ -265,9 +265,9 @@
context: "Argument 2",
});
- if (init.status < 200 || init.status > 599) {
+ if ((init.status < 200 || init.status > 599) && init.status != 101) {
throw new RangeError(
- `The status provided (${init.status}) is outside the range [200, 599].`,
+ `The status provided (${init.status}) is not equal to 101 and outside the range [200, 599].`,
);
}