diff --git a/src/web/ejabberd_http.erl b/src/web/ejabberd_http.erl index 47b206395..821fffb91 100644 --- a/src/web/ejabberd_http.erl +++ b/src/web/ejabberd_http.erl @@ -317,7 +317,8 @@ process([], _) -> process(Handlers, Request) -> [{HandlerPathPrefix, HandlerModule} | HandlersLeft] = Handlers, - case lists:prefix(HandlerPathPrefix, Request#request.path) of + case (lists:prefix(HandlerPathPrefix, Request#request.path) or + (HandlerPathPrefix==Request#request.path)) of true -> ?DEBUG("~p matches ~p", [Request#request.path, HandlerPathPrefix]), %% LocalPath is the path "local to the handler", i.e. if