diff options
Diffstat (limited to 'ext/fetch/23_response.js')
-rw-r--r-- | ext/fetch/23_response.js | 4 |
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].`, ); } |