couchbase/couchbase-lite-java-core — pull request #217 by march44 (2014-05-29 17:36:13+00:00)
Title: fixes issue couchbase/couchbase-lite-android/issues/214

By setting the size of the underlying data on InputStreamBody at construction time, and returning the value in getContentLength(), this allows apache HTTPClient to send attachments to the server unchunked. Sync Gateway can handle chunked data but the current release of CouchDB (1.5.1 tested) can not.