summaryrefslogtreecommitdiff
path: root/op_crates/fetch/26_fetch.js
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/fetch/26_fetch.js')
-rw-r--r--op_crates/fetch/26_fetch.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/op_crates/fetch/26_fetch.js b/op_crates/fetch/26_fetch.js
index c8b2c8794..d0bc6d979 100644
--- a/op_crates/fetch/26_fetch.js
+++ b/op_crates/fetch/26_fetch.js
@@ -166,6 +166,7 @@
if (typeof str !== "string") {
return false;
}
+ // deno-lint-ignore no-control-regex
return /^[\x00-\x7F]*$/.test(str);
}
@@ -1349,7 +1350,8 @@
});
return new Response(null, responseInit);
case "follow":
- default:
+ // fallthrough
+ default: {
let redirectUrl = response.headers.get("Location");
if (redirectUrl == null) {
return response; // Unspecified
@@ -1363,6 +1365,7 @@
url = redirectUrl;
redirected = true;
remRedirectCount--;
+ }
}
} else {
return response;