Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Return HTTP 405 for unsupported request method
  • Loading branch information
kxepal committed Oct 12, 2015
1 parent 747144e commit b9e1f3b5d5a78a706abb358e17130fb7344567d2
Showing 1 changed file with 4 additions and 1 deletion.
@@ -39,7 +39,10 @@ handle_setup_req(#httpd{method='GET'}=Req) ->
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) ->

0 comments on commit b9e1f3b

Please sign in to comment.