Fix issue #984 - support HEAD method for health check

This commit is contained in:
Feng Lee 2017-04-10 13:37:50 +08:00
parent a536226a0a
commit e6df089ecb
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
handle_request(Req) ->
handle_request(Req:get(method), Req:get(path), Req).
handle_request('GET', "/status", Req) ->
handle_request(Method, "/status", Req) when Method =:= 'HEAD'; Method =:= 'GET' ->
{InternalStatus, _ProvidedStatus} = init:get_status(),
AppStatus =
case lists:keysearch(emqttd, 1, application:which_applications()) of