commit | b9e1f3b5d5a78a706abb358e17130fb7344567d2 | [log] [tgz] |
---|---|---|
author | Alexander Shorin <kxepal@apache.org> | Mon Oct 12 18:10:41 2015 +0300 |
committer | Alexander Shorin <kxepal@apache.org> | Mon Oct 12 18:23:43 2015 +0300 |
tree | d1511a1c870be5f0cc51a7cebcf04e495775495c | |
parent | 747144ee259b1fe084ee041f783936a7ee1cf2de [diff] |
Return HTTP 405 for unsupported request method
diff --git a/src/setup_httpd.erl b/src/setup_httpd.erl index 32c6104..006ed45 100644 --- a/src/setup_httpd.erl +++ b/src/setup_httpd.erl
@@ -39,7 +39,10 @@ ok -> chttpd:send_json(Req, 200, {[{state, cluster_finished}]}) end - end. + end; +handle_setup_req(#httpd{}=Req) -> + chttpd:send_method_not_allowed(Req, "GET,POST"). + get_options(Options, Setup) -> ExtractValues = fun({Tag, Option}, OptionsAcc) ->