I'm trying to get some POST parameters following a request using Express, but I cannot get the data. Here's my app.configure:
app.configure(function() {
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(gzippo.staticGzip(__dirname + '/public'));
app.use(gzippo.compress());
});
After a POST HTTP request, I try to ouptut it in the console:
console.log(req.body);
The object is always empty.
Any idea on what I forgot?