rricard/mongoose-fs — pull request #5 by divmgl (2014-12-27 19:43:18+00:00)
Title: Remove JSON parsing which is prone to errors

JSON parsing is not reliable when using binary data and can cause crashes when retrieving blobs. Because data is already inserted into GridFS as a buffer, the layer where the buffer is parsed into JSON has been completely removed. Also, the content type has been changed to 'application/octet-stream', which represents arbitrary binary data.