24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

Properly handle HEAD request in mod_http_bind (this fixes EJAB-1538)

This commit is contained in:
Paweł Chmielowski 2012-04-06 11:47:38 +02:00
parent cea23b055b
commit 1f1a98d7ae

View File

@ -74,6 +74,8 @@ process([], #request{method = 'GET',
process([], #request{method = 'OPTIONS',
data = []}) ->
{200, ?OPTIONS_HEADER, []};
process([], #request{method = 'HEAD'}) ->
{200, ?HEADER, []};
process(_Path, _Request) ->
?DEBUG("Bad Request: ~p", [_Request]),
{400, ?HEADER, {xmlelement, "h1", [],