Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
fixes non buffers in data event issue #75
i think i see what the problem is. if you setEncoding the chunks won't be buffers, they'll be strings. the code @issacs wrote to merge the array together assumes buffers.
it would be lower impact to add this isBuffer check to where it gets concatenated rather than creating new buffers around each chunk if they are already encoded in to a string.