Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

return false instead of emitting pause to indicate that pipe should w…

…ait for drain event
  • Loading branch information...
commit 7e26fa904d5dc04dd535fabcf0e5ae196dd794d9 1 parent 5e576f3
@abram abram authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/simple/test-http-client-pipe.js
View
2  test/simple/test-http-client-pipe.js
@@ -15,10 +15,10 @@ SlowStream.prototype.write = function(buffer) {
this.output += buffer.toString();
console.log('wrote data.');
var self = this;
- this.emit('pause');
setTimeout(function() {
self.emit('drain');
}, 100);
+ return false;
};
SlowStream.prototype.end = function() {
Please sign in to comment.
Something went wrong with that request. Please try again.