Skip to content
Browse files

Adding back in guard for _started, need to keep some measure of safet…

…y but we should defer this restriction for as long as possible.
  • Loading branch information...
1 parent 8b82ef4 commit 82440f76f22a5fca856735af66e2dc3fcf240c0d @mikeal mikeal committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  main.js
1  main.js
@@ -319,6 +319,7 @@ Request.prototype.init = function (options) {
self.once('pipe', function (src) {
+ if (self.ntick && self._started) throw new Error("You cannot pipe to this stream after the outbound request has started.")
self.src = src
if (isReadStream(src)) {
if (!self.headers['content-type'] && !self.headers['Content-Type'])

0 comments on commit 82440f7

Please sign in to comment.
Something went wrong with that request. Please try again.