mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
http: Set _dumped=false initially
The better to keep the IncomingMessage class isomorphic and avoid creating additional hidden classes.
This commit is contained in:
1 parent
bb1c03989f
commit
dc0c524ce6
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user