I am using Express 3, and would like to handle text/plain POSTs.
Express 3 uses connect\'s bodyParser now (I think the old Express code got moved t
https://gist.github.com/3750227
app.use(function(req, res, next){ if (req.is('text/*')) { req.text = ''; req.setEncoding('utf8'); req.on('data', function(chunk){ req.text += chunk }); req.on('end', next); } else { next(); } });
Will add the text as req.text