We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebe62f8 + ac3873f commit f7938aeCopy full SHA for f7938ae
1 file changed
src/chttpd/src/chttpd_db.erl
@@ -398,6 +398,7 @@ handle_auto_purge_req(#httpd{method = 'GET'} = Req, Db) ->
398
chttpd:send_error(Req, Reason)
399
end;
400
handle_auto_purge_req(#httpd{method = 'PUT'} = Req, Db) ->
401
+ chttpd:validate_ctype(Req, "application/json"),
402
{AutoPurgeProps} = chttpd:json_body_obj(Req),
403
validate_auto_purge_props(AutoPurgeProps),
404
case fabric:set_auto_purge_props(Db, AutoPurgeProps) of
0 commit comments