Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FA0918163 for ; Sat, 2 May 2015 21:24:07 +0000 (UTC) Received: (qmail 14178 invoked by uid 500); 2 May 2015 21:24:07 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 14068 invoked by uid 500); 2 May 2015 21:24:07 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 13815 invoked by uid 99); 2 May 2015 21:24:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2015 21:24:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9E91BE07EB; Sat, 2 May 2015 21:24:06 +0000 (UTC) From: nolanlawson To: dev@couchdb.apache.org Reply-To: dev@couchdb.apache.org References: In-Reply-To: Subject: [GitHub] couchdb-chttpd pull request: Implement /db/_bulk_get endpoint Content-Type: text/plain Message-Id: <20150502212406.9E91BE07EB@git1-us-west.apache.org> Date: Sat, 2 May 2015 21:24:06 +0000 (UTC) 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. ---