From: Holger Weiss Date: Wed, 11 Feb 2015 14:38:55 +0000 (+0100) Subject: Don't crash if 'request_path' has unexpected type X-Git-Tag: 15.02~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f822dd2b89cba5cb1c69848a30cb271c6045a4d;p=ejabberd Don't crash if 'request_path' has unexpected type --- diff --git a/src/ejabberd_http.erl b/src/ejabberd_http.erl index 289d54127..3c91c3c58 100644 --- a/src/ejabberd_http.erl +++ b/src/ejabberd_http.erl @@ -280,7 +280,7 @@ process_header(State, Data) -> []), throw(http_request_no_host_header); {ok, http_eoh} -> - ?DEBUG("(~w) http query: ~w ~s~n", + ?DEBUG("(~w) http query: ~w ~p~n", [State#state.socket, State#state.request_method, element(2, State#state.request_path)]), {HostProvided, Port, TP} =