Fix get server host function

This commit is contained in:
kireevdmitry
2023-05-19 09:07:38 +00:00
parent 2a6e5e44bf
commit a5f91bc14f

View File

@ -178,7 +178,7 @@ docManager.prototype.getServerPath = function () {
// get host address from the request
docManager.prototype.getServerHost = function () {
return this.getProtocol() + "://" + (this.req.headers["x-forwarded-host"] || this.req.headers["host"]);
return this.getProtocol() + "://" + (this.req.headers["x-forwarded-host"] || this.req.headers["host"] + this.req.headers["x-forwarded-prefix"]);
};
// get protocol from the request