Browse files

request: Float a patch to resume responses for streams2

  • Loading branch information...
1 parent 7f39305 commit b2eacd41fb6eeb52e1dc0f3695eb96fb378e5796 @isaacs isaacs committed Mar 20, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 node_modules/request/main.js
View
3 node_modules/request/main.js
@@ -511,8 +511,9 @@ Request.prototype.start = function () {
if (response.connection.listeners('error').indexOf(self._parserErrorHandler) === -1) {
response.connection.once('error', self._parserErrorHandler)
}
- if (self._aborted) return
+ if (self._aborted) return response.resume()
if (self._paused) response.pause()
+ else response.resume()
self.response = response
response.request = self

0 comments on commit b2eacd4

Please sign in to comment.