lib/types/xml.js
function hasBody(req) {
  var encoding = 'transfer-encoding' in req.headers;
  var length = 'content-length' in req.headers && req.headers['content-length'] !== '0';
  return encoding || length;
}
function hasBody(req) {
  var encoding = 'transfer-encoding' in req.headers;
  var length = 'content-length' in req.headers && req.headers['content-length'] !== '0';
  return encoding || length;
}
function hasBody ( req ) { var encoding = 'transfer-encoding' in req . headers ; var length = 'content-length' in req . headers && req . headers [ 'content-length' ] !== '0' ; return encoding || length ; }
Test whether request has body

@see connect.utils
@param {IncomingMessage} req
@return {boolean}
Test whether request has body