You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by samueltardieu <gi...@git.apache.org> on 2015/02/19 09:46:08 UTC

[GitHub] couchdb-couch pull request: Consume JSON body even when its conten...

GitHub user samueltardieu opened a pull request:

    https://github.com/apache/couchdb-couch/pull/36

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/samueltardieu/couchdb-couch consume-json-body-2

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb-couch/pull/36.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #36
    
----
commit 21bcf147f5e0b7e2ee06face3d2c7e41eae6cc6c
Author: Samuel Tardieu <sa...@rfc1149.net>
Date:   2015-02-19T08:44:53Z

    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.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch pull request: Consume JSON body even when its conten...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb-couch/pull/36


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb-couch pull request: Consume JSON body even when its conten...

Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on the pull request:

    https://github.com/apache/couchdb-couch/pull/36#issuecomment-75162926
  
    Thanks! (:


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---