Permalink
Browse files

Call `response.resume()` to start the data flow

This fixes tests which were broken since introducing `streams2`.
  • Loading branch information...
1 parent 049cefa commit 4a26bf63b186c31026e24977619e0b959f23ba2e @mmalecki committed Dec 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
View
2 index.js
@@ -571,6 +571,8 @@ Request.prototype.start = function () {
delete reqOptions.auth
self.req = self.httpModule.request(reqOptions, function (response) {
+ response.resume();
+
if (response.connection.listeners('error').indexOf(self._parserErrorHandler) === -1) {
response.connection.once('error', self._parserErrorHandler)
}

0 comments on commit 4a26bf6

Please sign in to comment.