Comparing version 0.7.4 to 0.7.5
@@ -207,9 +207,9 @@ ////////////////////////////////////////// | ||
var done = function(err, resp) { | ||
var done = function(err, resp, body) { | ||
if (returned++ > 0) return; | ||
if (callback) | ||
callback(err, resp); | ||
callback(err, resp, body); | ||
else | ||
out.emit('end', err, resp); | ||
out.emit('end', err, resp, body); | ||
} | ||
@@ -216,0 +216,0 @@ |
{ | ||
"name": "needle" | ||
, "version": "0.7.4" | ||
, "version": "0.7.5" | ||
, "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"] |
68137