couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nolanlawson <...@git.apache.org>
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:

    https://github.com/apache/couchdb-chttpd/pull/33#issuecomment-98403217
  
    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 "127.0.0.1:15984/mydb/_bulk_get" -H 'content-type:application/json' --data-binary
'{"revs": true, "docs":[{"id":"foo","rev":"1-967a00dff5e02add41819138abb3284d"}]}'
    
    Whereas this works:
    
        curl -X POST "127.0.0.1:15984/mydb/_bulk_get" -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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message