Fix path-based reverse proxy request URLs
This commit is contained in:
parent
7522024980
commit
fa2b02f678
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -56,7 +56,7 @@ Mod.prototype.callback = function callback(req, res, serverconsole, responseEnd,
|
||||||
if(preparedPath == matchingHostname) {
|
if(preparedPath == matchingHostname) {
|
||||||
preparedPath = "/";
|
preparedPath = "/";
|
||||||
} else {
|
} else {
|
||||||
preparedPath = preparedPath.replace(matchingHostname + "/","");
|
preparedPath = preparedPath.replace(matchingHostname.substring(1) + "/","");
|
||||||
if(preparedPath == "") preparedPath = "/";
|
if(preparedPath == "") preparedPath = "/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue