diff --git a/lib/Parser.js b/lib/Parser.js index fc2f0f7..ae4f8f4 100644 --- a/lib/Parser.js +++ b/lib/Parser.js @@ -69,8 +69,6 @@ Parser.prototype._parse = function(data) { i = this._literallen; this._literallen = 0; - this._body = undefined; - body.push(data.slice(0, litlen)); } else { this._literallen -= datalen; @@ -82,6 +80,7 @@ Parser.prototype._parse = function(data) { i = datalen; } if (this._literallen === 0) { + this._body = undefined; body._read = EMPTY_READCB; body.push(null); }