fix bug
parent
32479a9dcf
commit
c502a1b6ab
|
@ -76,7 +76,7 @@ async function fetchAndApply(host, request) {
|
||||||
while (out_body.includes(replace_path)) out_body = out_body.replace(replace_path, replaced_path);
|
while (out_body.includes(replace_path)) out_body = out_body.replace(replace_path, replaced_path);
|
||||||
} else if (contentType.includes("text/html")) {
|
} else if (contentType.includes("text/html")) {
|
||||||
out_body = await response.text();
|
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 {
|
} else {
|
||||||
out_body = await response.body;
|
out_body = await response.body;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue