nodejs: fix undefined header

This commit is contained in:
Sergey Linnik
2023-06-07 13:29:45 +05:00
parent 24a26fd530
commit e3a088ccaf

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"]) + this.req.headers["x-forwarded-prefix"];
return this.getProtocol() + "://" + (this.req.headers["x-forwarded-host"] || this.req.headers["host"]) + (this.req.headers["x-forwarded-prefix"] || "");
};
// get protocol from the request