var express = require('express');
var compression = require('compression');
var app = express();

app.all('*', function(req, res, next) {
  console.log(req.headers);
  if (req.headers.host.match(/^www/) !== null ) {
    res.redirect('http://' + req.headers.host.replace(/^www\./, '') + req.url);
  } else {
    next();
  }
});

app.use(compression());
app.use(express.static(__dirname + '/public'));

app.listen(80);
console.log("Running on port 80...");

var express = require('express');
var compression = require('compression');
var app = express();

app.all('*', function(req, res, next) {
  if (req.headers.host.match(/^www/) !== null ) {
    res.redirect('http://' + req.headers.host.replace(/^www\./, '') + req.url);
  } else {
    next();
  }
});

app.use(compression());
app.use(express.static(__dirname + '/public'));

app.listen(80);
console.log("Running on port 80...");

Remove an unnecessary console log
Remove an unnecessary console log
