Skip to content

Commit

Permalink
[Fix] 🐛 Cloudflare Deploy Proxy th.bing.com Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed Apr 14, 2024
1 parent 922807e commit 3da7111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 3da7111

Please sign in to comment.