Consume JSON body even when its content is ignored
Consume JSON body even when its content is ignored

"_ensure_full_commit" and "_compact" require that the content-type
be set to "application/json". However, when some content is provided
(such as "{}" in order to send a valid JSON external representation
for the empty object), CouchDB needs to ensure that this content
is read from the incoming HTTP request.

Mirrors the fix for COUCHDB-2583 in CouchDB 1.x.

This closes #36

Signed-off-by: Alexander Shorin <287dfd97d2274fe201ae7191a244ba25e475e13a@apache.org>

smithsz/couchdb-couch,cloudant/couchdb-couch,smithsz/couchdb-couch,apache/couchdb-couch,alanning/couchdb-couch,KlausTrainer/couchdb-couch,fkaempfer/couchdb,apache/couchdb-couch,fkaempfer/couchdb,fkaempfer/couchdb,KlausTrainer/couchdb-couch,fkaempfer/couchdb,cloudant/couchdb-couch,alanning/couchdb-couch,alanning/couchdb-couch,fkaempfer/couchdb,ngpestelos/couchdb-couch,apache/couchdb-couch,smithsz/couchdb-couch,KlausTrainer/couchdb-couch,cloudant/couchdb-couch,ngpestelos/couchdb-couch,fkaempfer/couchdb,ngpestelos/couchdb-couch