Skip to content

Commit

Permalink
null Update worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchang1123 authored Nov 6, 2024
1 parent e3c2581 commit 99cd530
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,13 @@ export default {
});

default:
const errorPage = renderErrorPage('Dataset is not properly set!', null, true);
return new Response(errorPage, { status: 200, headers: {'Content-Type': 'text/html'}});
// return new Response('Not found', { status: 404 });
url.hostname = 'www.baidu.com';
url.protocol = 'https:';
request = new Request(url, request);
return await fetch(request);
//url.hostname = 'www.baidu.com';
//url.protocol = 'https:';
//request = new Request(url, request);
//return await fetch(request);
}
} else {
return url.pathname.startsWith('/tr')
Expand Down

0 comments on commit 99cd530

Please sign in to comment.