Skip to content

Commit

Permalink
Return destination stream from pipe().
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jul 29, 2011
1 parent 31f5ee2 commit c99b8fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ Request.prototype.pipe = function (dest) {
if (this.response) throw new Error("You cannot pipe after the response event.")
this.dests.push(dest);
stream.Stream.prototype.pipe.call(this, dest)
return dest
}
Request.prototype.write = function () {
if (!this._started) this.start();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ "name" : "request"
, "description" : "Simplified HTTP request client."
, "tags" : ["http", "simple", "util", "utility"]
, "version" : "2.0.0"
, "version" : "2.0.2"
, "author" : "Mikeal Rogers <mikeal.rogers@gmail.com>"
, "repository" :
{ "type" : "git"
Expand Down

0 comments on commit c99b8fc

Please sign in to comment.