mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
Merge remote-tracking branch 'remotes/origin/release/v7.4.0' into develop
# Conflicts: # web/documentserver-example/nodejs/helpers/docManager.js
This commit is contained in:
@ -189,7 +189,8 @@ DocManager.prototype.getServerPath = function getServerPath() {
|
||||
|
||||
// get host address from the request
|
||||
DocManager.prototype.getServerHost = function getServerHost() {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user