mirror of
https://github.com/jimeh/heartb.it.git
synced 2026-02-19 12:56:47 +00:00
removed logging of request Host header
This commit is contained in:
1
app.js
1
app.js
@@ -10,7 +10,6 @@
|
||||
app.set('view engine', 'coffee');
|
||||
app.register('.coffee', require('coffeekup').adapters.express);
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user