|
|
@@ -49,7 +49,7 @@ function getFileStream(srcUrl, options, cb) {
|
|
|
if (!headers['user-agent']) headers['user-agent'] = DEFAULT_AGENT;
|
|
|
if (!headers['accept-encoding']) headers['accept-encoding'] = ['gzip','deflate'];
|
|
|
|
|
|
- var req = (options.probe ? request.head : request.get)({url:url.format(srcUrl), stream:true, headers:headers});
|
|
|
+ var req = (options.probe ? request.head : request.get)({url:url.format(srcUrl), pool:false, headers:headers});
|
|
|
req.on('error', cb);
|
|
|
req.on('response', function (res) {
|
|
|
if (res.statusCode !== 200) {
|