mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Log error when HTTP request has ambiguous Host header (EJAB-1261)
This commit is contained in:
parent
e27dda3ff1
commit
8d3fd94d7d
@ -294,6 +294,8 @@ process(LocalPath, Request) ->
|
|||||||
{Code, Headers, Contents}
|
{Code, Headers, Contents}
|
||||||
catch
|
catch
|
||||||
exit:{noproc, _} ->
|
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)
|
ejabberd_web:error(not_found)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user