I get this error running the test for the gzip client.
% node test.js
_stream_readable.js:720
throw new Error('Cannot switch to old mode now.');
^
Error: Cannot switch to old mode now.
at emitDataEvents (_stream_readable.js:720:11)
at IncomingMessage.Readable.resume (_stream_readable.js:705:3)
at HTTPGzipDuplex.HTTPDuplex._read (/Users/mikeal/Documents/git/http-duplex-client/client.js:40:30)
at HTTPGzipDuplex.Readable.read (_stream_readable.js:320:10)
at flow (_stream_readable.js:579:52)
at HTTPGzipDuplex.pipeOnReadable (_stream_readable.js:614:5)
at HTTPGzipDuplex.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
I get this error running the test for the gzip client.
https://github.com/mikeal/http-duplex-gzip-client/blob/master/test.js