Honor max_document_size when receiving body in externals
Honor max_document_size when receiving body in externals

BugzID: 26773

fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb,fkaempfer/couchdb