cloudhead/cradle — pull request #121 by donpdonp (2011-11-21 19:44:51+00:00)
Title: Avoid the JSON parse error on empty strings

The _changes feed from couchdb can return an empty string which cradle was trying to parse and causing a JSON parse error. This code joins the buffer fragments and test for string length > 0 before sending to JSON.