mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
>_<
This commit is contained in:
3
app.js
3
app.js
@@ -24,7 +24,8 @@
|
||||
app.configure('production', function() {
|
||||
app.use(express.errorHandler);
|
||||
return app.use(function(req, res, next) {
|
||||
return console.log("Hostname: %s", req.header('Host'));
|
||||
console.log("Hostname: %s", req.header('Host'));
|
||||
return next();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ app.configure 'production', ->
|
||||
app.use express.errorHandler
|
||||
app.use (req, res, next) ->
|
||||
console.log "Hostname: %s", req.header('Host')
|
||||
next()
|
||||
# if req.header('Host') == 'www.heartb.it'
|
||||
# res.redirect('http://heartb.it/')
|
||||
# else
|
||||
|
||||
Reference in New Issue
Block a user