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

Log error when HTTP request has ambiguous Host header (EJAB-1261)

This commit is contained in:
Badlop 2010-06-16 11:33:17 +02:00
parent afa0f4d403
commit a28aaa1fdd

View File

@ -299,6 +299,8 @@ process(LocalPath, Request) ->
{Code, Headers, Contents}
catch
exit:{noproc, _} ->
?ERROR_MSG("Received an HTTP request with Host ~p, but couldn't find the related "
"ejabberd virtual host", [Request#request.host]),
ejabberd_web:error(not_found)
end.