Skip to content

Commit 3da7111

Browse files
committed
[Fix] 🐛 Cloudflare Deploy Proxy th.bing.com Error
1 parent 922807e commit 3da7111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cloudflare/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export default {
463463
if (currentUrl.pathname.startsWith('/sydney')) {
464464
targetUrl = new URL(SYDNEY_ORIGIN + currentUrl.pathname + currentUrl.search);
465465
} else if (currentUrl.pathname.startsWith('/th')) {
466-
targetUrl = new URL(BING_SOURCE_ORIGIN + currentUrl.pathname + currentUrl.search);
466+
targetUrl = new URL(BING_SOURCE_ORIGIN + currentUrl.pathname.replaceAll('/th/', '/') + currentUrl.search);
467467
} else if (currentUrl.pathname.startsWith('/edgesvc')) {
468468
targetUrl = new URL(EDGE_ORIGIN + currentUrl.pathname + currentUrl.search);
469469
} else if (currentUrl.pathname.startsWith('/opaluqu')) {

0 commit comments

Comments
 (0)