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.configure('production', function() {
|
||||||
app.use(express.errorHandler);
|
app.use(express.errorHandler);
|
||||||
return app.use(function(req, res, next) {
|
return app.use(function(req, res, next) {
|
||||||
console.log("Hostname: %s", req.header('Host'));
|
return console.log("Hostname: %s", req.header('Host'));
|
||||||
if (req.header('Host') === 'www.heartb.it') {
|
|
||||||
return res.redirect('http://heartb.it/');
|
|
||||||
} else {
|
|
||||||
return next();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,10 @@ app.configure 'production', ->
|
|||||||
app.use express.errorHandler
|
app.use express.errorHandler
|
||||||
app.use (req, res, next) ->
|
app.use (req, res, next) ->
|
||||||
console.log "Hostname: %s", req.header('Host')
|
console.log "Hostname: %s", req.header('Host')
|
||||||
if req.header('Host') == 'www.heartb.it'
|
# if req.header('Host') == 'www.heartb.it'
|
||||||
res.redirect('http://heartb.it/')
|
# res.redirect('http://heartb.it/')
|
||||||
else
|
# else
|
||||||
next()
|
# next()
|
||||||
|
|
||||||
|
|
||||||
# Routes
|
# Routes
|
||||||
|
|||||||
Reference in New Issue
Block a user