24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-02 23:06:21 +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 472d046426
commit 4645885180

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", [],