mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Properly handle HEAD request in mod_http_bind (this fixes EJAB-1538)
This commit is contained in:
parent
cea23b055b
commit
1f1a98d7ae
@ -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", [],
|
||||
|
Loading…
Reference in New Issue
Block a user