mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
changed on server
This commit is contained in:
@ -4,8 +4,7 @@ var mongoose = require('mongoose'),
|
||||
module.exports = function(piler) {
|
||||
return {
|
||||
index: function(req, res, next) {
|
||||
|
||||
host = String(req.headers.host);
|
||||
host = String(req.headers['x-forwarded-host']);
|
||||
host = host.split(':')[0];
|
||||
|
||||
if (host != 'n.atlb.co') {
|
||||
@ -47,4 +46,4 @@ module.exports = function(piler) {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user