changed on server

This commit is contained in:
Dobie Wollert
2013-07-19 02:38:07 -04:00
parent 4ca472f2cb
commit 1c2ba2737d
9 changed files with 69 additions and 12 deletions

View File

@ -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) {
});
}
}
}
}