iilyak commented on a change in pull request #1082: Introduce new _dbs_info
endpoint to get info of a list of databases
URL: https://github.com/apache/couchdb/pull/1082#discussion_r162050184
##########
File path: src/chttpd/src/chttpd_misc.erl
##########
@@ -141,6 +144,38 @@ all_dbs_callback({error, Reason}, #vacc{resp=Resp0}=Acc)
->
{ok, Resp1} = chttpd:send_delayed_error(Resp0, Reason),
{ok, Acc#vacc{resp=Resp1}}.
+handle_dbs_info_req(#httpd{method='POST'}=Req) ->
+ chttpd:validate_ctype(Req, "application/json"),
+ Props = couch_httpd:json_body_obj(Req),
Review comment:
I think it would be better if you would use functions which are defined in
the current application. The `chttpd:json_body_obj/1` provides the same
functionality.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services