Github user mayya-sharipova commented on a diff in the pull request:
https://github.com/apache/couchdb-chttpd/pull/56#discussion_r37138890
--- Diff: src/chttpd_db.erl ---
@@ -362,7 +362,6 @@
db_req(#httpd{path_parts=[_,<<"_ensure_full_commit">>]}=Req, _Db) ->
db_req(#httpd{method='POST',path_parts=[_,<<"_bulk_docs">>],
user_ctx=Ctx}=Req, Db) ->
couch_stats:increment_counter([couchdb, httpd, bulk_requests]),
- couch_httpd:validate_ctype(Req, "application/json"),
--- End diff --
Because after this line follows: {JsonProps} = chttpd:json_body_obj(Req),
and the function json_body_obj already having a check for header.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---