http: Don't dump twice

pull/24504/head
isaacs 2013-01-28 08:54:08 -08:00
parent e26622bd18
commit faf78604ca
1 changed files with 3 additions and 0 deletions

View File

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