diff --git a/app.js b/app.js index 4ff878f..e4a9d5e 100644 --- a/app.js +++ b/app.js @@ -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')); }); }); diff --git a/src/app.coffee b/src/app.coffee index eef8462..54426ab 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -19,10 +19,10 @@ app.configure 'production', -> app.use express.errorHandler app.use (req, res, next) -> console.log "Hostname: %s", req.header('Host') - if req.header('Host') == 'www.heartb.it' - res.redirect('http://heartb.it/') - else - next() + # if req.header('Host') == 'www.heartb.it' + # res.redirect('http://heartb.it/') + # else + # next() # Routes