Skip to content

Commit

Permalink
Merge pull request 1234567Yang#1 from LanYunDev/main
Browse files Browse the repository at this point in the history
修复某些情况下出现的bug,例如: https://搭建网址/https:/github.com
  • Loading branch information
1234567Yang authored Jun 17, 2024
2 parents 68abec0 + 151af02 commit 7fab030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async function handleRequest(request) {



if (!actualUrlStr.includes("://")) { //从www.xxx.com转到https://www.xxx.com
if (!actualUrlStr.startsWith("http") && !actualUrlStr.includes("://")) { //从www.xxx.com转到https://www.xxx.com
//actualUrlStr = "https://" + actualUrlStr;
return Response.redirect(thisProxyServerUrlHttps + "https://" + actualUrlStr, 301);
}
Expand Down

0 comments on commit 7fab030

Please sign in to comment.