disable redirect for now

This commit is contained in:
2011-12-25 01:44:08 +00:00
parent 569d7cd75e
commit ec50fb6c8e
2 changed files with 5 additions and 10 deletions

7
app.js
View File

@@ -24,12 +24,7 @@
app.configure('production', function() {
app.use(express.errorHandler);
return app.use(function(req, res, next) {
console.log("Hostname: %s", req.header('Host'));
if (req.header('Host') === 'www.heartb.it') {
return res.redirect('http://heartb.it/');
} else {
return next();
}
return console.log("Hostname: %s", req.header('Host'));
});
});