Blob Blame History Raw
commit 05a5735327f467f10744336ee6f1eb472bf7f5b4
Author: Ian Ward <ianshward@gmail.com>
Date:   Thu Jun 6 17:02:33 2013 -0400

    resume the stream for node v0.10 compatiblity

diff --git a/lib/node-get/node-get.js b/lib/node-get/node-get.js
index 1c84d43..057dc19 100644
--- a/lib/node-get/node-get.js
+++ b/lib/node-get/node-get.js
@@ -131,6 +131,7 @@ Get.prototype.perform = function(callback, times) {
 
     var clientrequest = this.request(function handleClientRequest(response, err) {
         if (err) return callback.call(this, err, null);
+        response.resume();
         if (response.statusCode >= 300 &&
             response.statusCode < 400 &&
             response.headers.location) {