Comparing version 0.5.7 to 0.5.8
@@ -256,3 +256,5 @@ ////////////////////////////////////////// | ||
// build the body by merging all the chunks we received | ||
resp.body = new Buffer(length), pos = 0; | ||
var pos = 0; | ||
resp.bytes = length; | ||
resp.body = new Buffer(resp.bytes); | ||
for (var i = 0, len = chunks.length; i < len; i++) { | ||
@@ -263,4 +265,2 @@ chunks[i].copy(resp.body, pos); | ||
resp.bytes = length; | ||
// if no unzip support, or no deflated body requested, return | ||
@@ -267,0 +267,0 @@ if (!compressed || typeof unzip == 'undefined') |
{ | ||
"name": "needle" | ||
, "version": "0.5.7" | ||
, "version": "0.5.8" | ||
, "description": "Tiny yet feature-packed HTTP client. With multipart, charset decoding and proxy support." | ||
@@ -5,0 +5,0 @@ , "keywords": ["http", "https", "simple", "request", "client", "multipart", "upload", "proxy", "deflate", "timeout", "charset", "iconv"] |
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
36198
760