aboutsummaryrefslogtreecommitdiff
path: root/lib/http.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-01-10 18:16:43 -0800
committerisaacs <i@izs.me>2013-01-10 18:16:43 -0800
commitdc0c524ce681f53e2bd8f0974ed6aa3fd910054d (patch)
tree6523358c65e0736c56c6e588a6bf49b43e46342a /lib/http.js
parentbb1c03989f8702e06072e6d9228b52661bf00ace (diff)
downloadandroid-node-v8-dc0c524ce681f53e2bd8f0974ed6aa3fd910054d.tar.gz
android-node-v8-dc0c524ce681f53e2bd8f0974ed6aa3fd910054d.tar.bz2
android-node-v8-dc0c524ce681f53e2bd8f0974ed6aa3fd910054d.zip
http: Set _dumped=false initially
The better to keep the IncomingMessage class isomorphic and avoid creating additional hidden classes.
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js4
1 files changed, 4 insertions, 0 deletions
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);