Browse Source

http: Don't dump twice

v0.9.9-release
isaacs 12 years ago
parent
commit
faf78604ca
  1. 3
      lib/http.js

3
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);

Loading…
Cancel
Save