Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Dec 28, 2014
1 parent 9174961 commit 82d3e9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/http_duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ HttpDuplex.prototype._write = function (chunk, encoding, cb) {
};

HttpDuplex.prototype.end = function (chunk, encoding, cb) {
this._output.destroy();
return this.req.end(chunk, encoding, cb);
};

HttpDuplex.prototype.destroy = function () {
this.req.destroy();
this._output.destroy();
};

0 comments on commit 82d3e9c

Please sign in to comment.