lib/caress.js
function parseTextBody(req, res, next){
    if (req.body === undefined) {
      req.body = '';
      req.on('data', function(chunk){ req.body += chunk });
      req.on('end', next);
    } else {
      next();
    }
  }
function parseTextBody(req, res, next){
    if (req.body === undefined) {
      req.body = '';
      req.on('data', function(chunk){ req.body += chunk });
      req.on('end', next);
    } else {
      next();
    }
  }
function parseTextBody ( req , res , next ) { if ( req . body === undefined ) { req . body = '' ; req . on ( 'data' , function ( chunk ) { req . body += chunk } ) ; req . on ( 'end' , next ) ; } else { next ( ) ; } }
Middleware to handle text bodies.
Middleware to handle text bodies .