mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Allow a request_handler to serve a file in root of HTTP
This commit is contained in:
parent
abdb7f2742
commit
071aa123e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user