couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nolanlawson <>
Subject [GitHub] couchdb-chttpd pull request: Implement /db/_bulk_get endpoint
Date Sat, 02 May 2015 21:24:06 GMT
Github user nolanlawson commented on the pull request:
    One slightly awkward thing I noticed: if you don't specify any `Accept` header at all,
then you get an error:
        {"error":"not_acceptable","reason":"Only application/json response is acceptable."}
    Shouldn't `application/json` be the expected default?
    To reproduce:
        curl -X POST "" -H 'content-type:application/json' --data-binary
'{"revs": true, "docs":[{"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}]}'
    Whereas this works:
        curl -X POST "" -H 'content-type:application/json' -H
'accept:application/json' --data-binary '{"revs": true, "docs":[{"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}]}'

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 or file a JIRA ticket
with INFRA.

View raw message