From 9f822dd2b89cba5cb1c69848a30cb271c6045a4d Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 11 Feb 2015 15:38:55 +0100 Subject: [PATCH] Don't crash if 'request_path' has unexpected type --- src/ejabberd_http.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} =