diff --git a/doc/api/stream.markdown b/doc/api/stream.markdown index 86f45ca9f9..1590df5ad5 100644 --- a/doc/api/stream.markdown +++ b/doc/api/stream.markdown @@ -264,6 +264,7 @@ SimpleProtocol.prototype._read = function(n) { } // now, because we got some extra data, unshift the rest // back into the read queue so that our consumer will see it. + var b = chunk.slice(split); this.unshift(b); // and let them know that we are done parsing the header.