This commit is contained in:
qkqpttgf
2020-10-03 11:28:56 +08:00
committed by GitHub
parent 32479a9dcf
commit c502a1b6ab
+1 -1
View File
@@ -76,7 +76,7 @@ async function fetchAndApply(host, request) {
while (out_body.includes(replace_path)) out_body = out_body.replace(replace_path, replaced_path);
} else if (contentType.includes("text/html")) {
out_body = await response.text();
while (out_body.includes(replace_path)) out_body = out_body.replace(replace_path, replaced_path);
while (replace_path!='/'&&out_body.includes(replace_path)) out_body = out_body.replace(replace_path, replaced_path);
} else {
out_body = await response.body;
}