Skip to content

Commit

Permalink
Fixing end bug i introduced being stupid.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Feb 20, 2012
1 parent 56d868d commit 37d0699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ Request.prototype.end = function (chunk) {
if (chunk) this.write(chunk)
if (!this._started) this.start()
if (!this.req) throw new Error("This request has been piped before http.request() was called.")
this.req.end.apply(this.req, arguments)
this.req.end(this.req)
}
Request.prototype.pause = function () {
if (!this.response) throw new Error("This request has been piped before http.request() was called.")
Expand Down

0 comments on commit 37d0699

Please sign in to comment.