25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Don't crash if 'request_path' has unexpected type

This commit is contained in:
Holger Weiss 2015-02-11 15:38:55 +01:00
parent 3cba2cb1ec
commit 9f822dd2b8

View File

@ -280,7 +280,7 @@ process_header(State, Data) ->
[]), []),
throw(http_request_no_host_header); throw(http_request_no_host_header);
{ok, http_eoh} -> {ok, http_eoh} ->
?DEBUG("(~w) http query: ~w ~s~n", ?DEBUG("(~w) http query: ~w ~p~n",
[State#state.socket, State#state.request_method, [State#state.socket, State#state.request_method,
element(2, State#state.request_path)]), element(2, State#state.request_path)]),
{HostProvided, Port, TP} = {HostProvided, Port, TP} =