diff options
author | isaacs <i@izs.me> | 2012-12-21 16:48:32 +0000 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-12-21 16:48:32 +0000 |
commit | c048c814c79a8706f177573c76bfcba3cda0b633 (patch) | |
tree | f0dd65791c186d2a3528237489ded2d9ae79defd | |
parent | ec7455558f690fa5afb4e9f762a77ddaa51212f7 (diff) | |
download | node-c048c814c79a8706f177573c76bfcba3cda0b633.tar.gz |
http: Trivial fix for comments and 'this.read'
-rw-r--r-- | lib/http.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http.js b/lib/http.js index 2e1cc84da..81c5f67dd 100644 --- a/lib/http.js +++ b/lib/http.js @@ -313,7 +313,7 @@ exports.IncomingMessage = IncomingMessage; IncomingMessage.prototype.read = function(n) { this._consuming = true; this.read = Stream.Readable.prototype.read; - return Stream.Readable.prototype.read.call(this, n); + return this.read(n); }; @@ -1518,7 +1518,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) { res.on('end', responseOnEnd); // If the user did not listen for the 'response' event, then they - // can't possibly read the data, so we .resume() it into the void + // can't possibly read the data, so we ._dump() it into the void // so that the socket doesn't hang there in a paused state. if (!handled) res._dump(); @@ -1845,7 +1845,7 @@ function connectionListener(socket) { incoming.shift(); // if the user never called req.read(), and didn't pipe() or - // .resume() or .on('data'), then we call req.resume() so that the + // .resume() or .on('data'), then we call req._dump() so that the // bytes will be pulled off the wire. if (!req._consuming) req._dump(); |