From faf78604ca980dbb3ad57df87640415c6a901fac Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 28 Jan 2013 08:54:08 -0800 Subject: [PATCH] http: Don't dump twice --- lib/http.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/http.js b/lib/http.js index 28601d061c..ae6976ab62 100644 --- a/lib/http.js +++ b/lib/http.js @@ -409,6 +409,9 @@ IncomingMessage.prototype._addHeaderLine = function(field, value) { // Call this instead of resume() if we want to just // dump all the data to /dev/null IncomingMessage.prototype._dump = function() { + if (this._dumped) + return; + this._dumped = true; this.socket.parser.incoming = null; this.push(null);