fix(route/BBC): 403 Forbidden Edge 5 (#16048)

* fix(route/BBC): 403 Forbidden Edge 5

* Revert "fix(route/BBC): 403 Forbidden Edge 5"

This reverts commit 2ebb8b9abcf52be5e9bbeac9166b18346400d467.

* https://github.com/nodejs/undici/discussions/3400#discussioncomment-10020438
This commit is contained in:
Andvari
2024-07-12 00:04:47 +08:00
committed by GitHub
parent 32ae3c1962
commit d3f7fda21f
+3 -1
View File
@@ -66,7 +66,9 @@ async function handler(ctx) {
linkURL.hostname = 'www.bbc.co.uk';
}
const response = await ofetch(linkURL.href);
const response = await ofetch(linkURL.href, {
retryStatusCodes: [403],
});
const $ = load(response);