mirror of
https://github.com/NewFuture/DDNS.git
synced 2026-10-21 12:03:21 +00:00
Add redirect option to fetch notFoundUrl
This commit is contained in:
+1
-1
@@ -207,7 +207,7 @@ async function handleRequest(request) {
|
||||
}
|
||||
|
||||
try {
|
||||
const notFoundResponse = await fetch(notFoundUrl.toString());
|
||||
const notFoundResponse = await fetch(notFoundUrl.toString(), { redirect: 'follow' });
|
||||
|
||||
if (notFoundResponse.ok) {
|
||||
// Return 404.html with 404 status code and appropriate headers
|
||||
|
||||
Reference in New Issue
Block a user