couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/2] couch commit: updated refs/heads/master to bcb7c1a
Date Sun, 12 Jul 2015 12:27:58 GMT
Revert "Throw bad request for empty POST request body when filtering by doc_ids"

This reverts commit e858e7dfef06a4d6e6c9228de80628f7166397ef.


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/dec1c99f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/dec1c99f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/dec1c99f

Branch: refs/heads/master
Commit: dec1c99f0d96bd39eccf78ee1c7f489a240673ef
Parents: e858e7d
Author: Robert Newson <rnewson@apache.org>
Authored: Sun Jul 12 13:27:26 2015 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Sun Jul 12 13:27:39 2015 +0100

----------------------------------------------------------------------
 src/couch_changes.erl | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/dec1c99f/src/couch_changes.erl
----------------------------------------------------------------------
diff --git a/src/couch_changes.erl b/src/couch_changes.erl
index 33e7c14..2b2647f 100644
--- a/src/couch_changes.erl
+++ b/src/couch_changes.erl
@@ -309,10 +309,6 @@ get_view_qs(Req) ->
 
 get_doc_ids({json_req, {Props}}) ->
     check_docids(couch_util:get_value(<<"doc_ids">>, Props));
-get_doc_ids(#httpd{method='POST', req_body=undefined}) ->
-    throw({bad_request,
-           "`_doc_ids` filter requires JSON object body with field \"doc_ids\" "
-           "containing array of ids."});
 get_doc_ids(#httpd{method='POST'}=Req) ->
     {Props} = couch_httpd:json_body_obj(Req),
     check_docids(couch_util:get_value(<<"doc_ids">>, Props));


Mime
View raw message