From dc0c524ce681f53e2bd8f0974ed6aa3fd910054d Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 10 Jan 2013 18:16:43 -0800 Subject: [PATCH] http: Set _dumped=false initially The better to keep the IncomingMessage class isomorphic and avoid creating additional hidden classes. --- lib/http.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/http.js b/lib/http.js index 687c335ef3..867d026104 100644 --- a/lib/http.js +++ b/lib/http.js @@ -314,6 +314,10 @@ function IncomingMessage(socket) { // flag for backwards compatibility grossness. this._consuming = false; + + // flag for when we decide that this message cannot possibly be + // read by the user, so there's no point continuing to handle it. + this._dumped = false; } util.inherits(IncomingMessage, Stream.Readable);