miniflycn/url-valid

In NodeJS 0.10.12, it couldn't emit the end event.

Closed this issue · 1 comments

In NodeJS 0.10.12, it couldn't emit the end event.
that.fetch ? 
              (res.on('data', function (data) {
                that.emitter.emit('data', null, data);
              }) && res.on('end', function () {
                that.emitter.emit('end');
              })) :
              (req.abort() || that.emitter.emit('end'));