index.js
function (done) {
      if (called) return;

      called = true;

      // wait for req events to fire
      process.nextTick(function() {
        if (waitend && req.readable) {
          // dump rest of request
          req.resume();
          req.once('end', done);
          return;
        }

        done();
      });
    }
function (done) {
      if (called) return;

      called = true;

      // wait for req events to fire
      process.nextTick(function() {
        if (waitend && req.readable) {
          // dump rest of request
          req.resume();
          req.once('end', done);
          return;
        }

        done();
      });
    }
function ( done ) { if ( called ) return ; called = true ; // wait for req events to fire process . nextTick ( function ( ) { if ( waitend && req . readable ) { // dump rest of request req . resume ( ) ; req . once ( 'end' , done ) ; return ; } done ( ) ; } ) ; }
wait for request to end before calling cb
wait for request to end before calling cb