// req.text (http://stackoverflow.com/questions/12497358/handling-text-plain-in-express-3-via-connect/12497793#12497793) 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(); } });
app.post('/update/', function(req, res) { // New github update? req.rawBody = ''; req.setEncoding('utf8');