COUCHDB-1177 - don't read more of an attachment than Content-Length states. (original patch by Paul Davis, awesomeness enhanced by Robert Newson). Conflicts: src/couchdb/couch_httpd_db.erl