Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created August 10, 2013 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/6198463 to your computer and use it in GitHub Desktop.
Save isaacs/6198463 to your computer and use it in GitHub Desktop.
diff --git a/lib/http.js b/lib/http.js
index 339a889..5a9abf2 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -512,6 +512,9 @@ OutgoingMessage.prototype._writeRaw = function(data, encod
return true;
}
+ if (this.connection && this.connection._httpMessage !== this)
+ throw new Error('wtf?');
+
if (this.connection &&
this.connection._httpMessage === this &&
this.connection.writable &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment