Comparing version 0.9.3 to 0.9.4
@@ -103,3 +103,3 @@ (function () { | ||
function getBody(readStream, callback) { | ||
var body = ''; | ||
var sended, body = ''; | ||
@@ -113,2 +113,3 @@ Util.checkArgs(arguments, ['readStream', 'callback']); | ||
readStream.once('error', function(error) { | ||
sended = true; | ||
callback(error); | ||
@@ -118,5 +119,6 @@ }); | ||
readStream.once('end', function() { | ||
callback(null, body); | ||
if (!sended) | ||
callback(null, body); | ||
}); | ||
} | ||
})(); |
{ | ||
"name": "pipe-io", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "Pipe streams and handle events", |
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
6513
131