couchbase/couchbase-lite-net — pull request #321 by jonlipsky (2014-10-01 18:56:47+00:00)
Title: Fixed change tracker to not throw exception when syncing with with CouchDB

CouchDB returns "{\"results\":[\n" instead of "{\"results\":[\r\n" which was being looked for. Updated if statement to compare against the trimmed value to remove linefeeds from the comparison. Additionally, since CouchDB only had "\n" instead of "\r\n" the JSON exception would be about line 2, not line 3. I removed the second part of this check since (in my opinion) testing against the exception message is a bit brittle and doesn't work with CouchDB as-is.