Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKaraberov committed Nov 12, 2018
1 parent b18a893 commit cb2dca5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chttpd/src/chttpd_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,10 @@ db_req(#httpd{method='POST', path_parts=[_, <<"_bulk_get">>],
} = bulk_get_parse_doc_query(Req),
Options = [{user_ctx, Req#httpd.user_ctx} | Options0],

AcceptJson = MochiReq:accepts_content_type("application/json"),
AcceptMixedMp = MochiReq:accepts_content_type("multipart/mixed"),
AcceptRelatedMp = MochiReq:accepts_content_type("multipart/related"),
AcceptMp = AcceptMixedMp orelse AcceptRelatedMp,
AcceptMp = not AcceptJson andalso (AcceptMixedMp orelse AcceptRelatedMp),
case AcceptMp of
false ->
{ok, Resp} = start_json_response(Req, 200),
Expand Down

0 comments on commit cb2dca5

Please sign in to comment.