Fix path-based reverse proxy request URLs

This commit is contained in:
Dorian Niemiec 2024-04-19 22:24:53 +02:00
parent 7522024980
commit fa2b02f678

View file

@ -56,7 +56,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd,
if(preparedPath == matchingHostname) {
preparedPath = "/";
} else {
preparedPath = preparedPath.replace(matchingHostname + "/","");
preparedPath = preparedPath.replace(matchingHostname.substring(1) + "/","");
if(preparedPath == "") preparedPath = "/";
}
}