فهرست منبع

don't throw on spurious errors

Gil Pedersen 13 سال پیش
والد
کامیت
3a5efa866b
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      lib/reader.js

+ 1 - 0
lib/reader.js

@@ -70,6 +70,7 @@ function getFileStream(srcUrl, options, cb) {
 
     var req = (options.probe ? request.head : request.get)({uri:url.format(srcUrl), pool:false, headers:headers, timeout:60*1000});
     req.on('error', onreqerror);
+    req.on('error', noop);
     req.on('response', onresponse);
 
     function onreqerror(err) {