Parser: wrap passed in stream for node v0.8

fork
mscdex 12 years ago
parent b6d8a3a151
commit 679d685fd9

@ -25,6 +25,9 @@ function Parser(stream, debug) {
EventEmitter.call(this);
if (/^v0\.8\./.test(process.version))
stream = new ReadableStream().wrap(stream);
this._stream = stream;
this._body = undefined;
this._literallen = 0;

Loading…
Cancel
Save