Skip to content

Commit

Permalink
Removing guard, there are some cases where this is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Jul 9, 2012
1 parent 3a664fd commit 8b82ef4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ Request.prototype.init = function (options) {
}

self.once('pipe', function (src) {
if (self.ntick) throw new Error("You cannot pipe to this stream after the first nextTick() after creation of the request stream.")
self.src = src
if (isReadStream(src)) {
if (!self.headers['content-type'] && !self.headers['Content-Type'])
Expand Down

0 comments on commit 8b82ef4

Please sign in to comment.