updated npm modules
This commit is contained in:
4
node_modules/express/lib/request.js
generated
vendored
4
node_modules/express/lib/request.js
generated
vendored
@@ -430,6 +430,10 @@ defineGetter(req, 'hostname', function hostname(){
|
||||
|
||||
if (!host || !trust(this.connection.remoteAddress, 0)) {
|
||||
host = this.get('Host');
|
||||
} else if (host.indexOf(',') !== -1) {
|
||||
// Note: X-Forwarded-Host is normally only ever a
|
||||
// single value, but this is to be safe.
|
||||
host = host.substring(0, host.indexOf(',')).trimRight()
|
||||
}
|
||||
|
||||
if (!host) return;
|
||||
|
||||
Reference in New Issue
Block a user