mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
disable redirect for now
This commit is contained in:
7
app.js
7
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'));
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user