From 3da71117575b247f556d3d47bf8a9796edb54c9c Mon Sep 17 00:00:00 2001 From: Harry-zklcdc Date: Mon, 15 Apr 2024 02:40:53 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=F0=9F=90=9B=20Cloudflare=20Deploy=20Pr?= =?UTF-8?q?oxy=20`th.bing.com`=20Error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloudflare/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare/worker.js b/cloudflare/worker.js index 4270980dcf..8c92043dd5 100644 --- a/cloudflare/worker.js +++ b/cloudflare/worker.js @@ -463,7 +463,7 @@ export default { if (currentUrl.pathname.startsWith('/sydney')) { targetUrl = new URL(SYDNEY_ORIGIN + currentUrl.pathname + currentUrl.search); } else if (currentUrl.pathname.startsWith('/th')) { - targetUrl = new URL(BING_SOURCE_ORIGIN + currentUrl.pathname + currentUrl.search); + targetUrl = new URL(BING_SOURCE_ORIGIN + currentUrl.pathname.replaceAll('/th/', '/') + currentUrl.search); } else if (currentUrl.pathname.startsWith('/edgesvc')) { targetUrl = new URL(EDGE_ORIGIN + currentUrl.pathname + currentUrl.search); } else if (currentUrl.pathname.startsWith('/opaluqu')) {