ttezel/twit — pull request #16 by matteoagosti (2012-08-21 07:12:38+00:00)
Title: Fixed errors when parsing stream response

As stream data could be spanned across several chunks, the current implementation fails to handle that as it assumes the chunk contains a valid JSON-parseable string. In my implementation chunks get concatenated until the delimiter (\r\n) is found. If there are leftovers they get concatenated with the next chunk. Testing with the statuses/sample stream resulted in no parsing errors.