mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
no need for quotes
This commit is contained in:
@@ -22,13 +22,13 @@ var async = require('async'),
|
||||
referer = headers['referer'];
|
||||
|
||||
return {
|
||||
'ip': headers['x-forwarded-for'] || socket.handshake.address.address,
|
||||
'host': host,
|
||||
'protocol': headers['secure'] ? 'https' : 'http',
|
||||
'secure': !!headers['secure'],
|
||||
'url': referer,
|
||||
'path': referer.substr(referer.indexOf(host) + host.length),
|
||||
'headers': headers
|
||||
ip: headers['x-forwarded-for'] || socket.handshake.address.address,
|
||||
host: host,
|
||||
protocol: headers['secure'] ? 'https' : 'http',
|
||||
secure: !!headers['secure'],
|
||||
url: referer,
|
||||
path: referer.substr(referer.indexOf(host) + host.length),
|
||||
headers: headers
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user