Comparing version 0.3.1 to 0.3.2
@@ -387,3 +387,4 @@ var http = require("http"), | ||
response_data, chunks = [], length=0, curpos=0, buffer, | ||
content_type; | ||
content_type, | ||
callbackFired = false; | ||
@@ -403,2 +404,6 @@ fetchstream.on("meta", function(meta){ | ||
fetchstream.on("error", function(error){ | ||
if(callbackFired){ | ||
return; | ||
} | ||
callbackFired = true; | ||
callback(error); | ||
@@ -408,2 +413,7 @@ }); | ||
fetchstream.on("end", function(error){ | ||
if(callbackFired){ | ||
return; | ||
} | ||
callbackFired = true; | ||
buffer = new Buffer(length); | ||
@@ -410,0 +420,0 @@ for(var i=0, len = chunks.length; i<len; i++){ |
{ | ||
"name": "fetch", | ||
"description": "Fetch URL contents", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"author": "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "maintainers": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26948
10
571