mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Allow a request_handler to serve a file in root of HTTP
This commit is contained in:
parent
4caf4da9a6
commit
0d09816c39
@ -321,7 +321,8 @@ process([], _) ->
|
|||||||
process(Handlers, Request) ->
|
process(Handlers, Request) ->
|
||||||
[{HandlerPathPrefix, HandlerModule} | HandlersLeft] = Handlers,
|
[{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 ->
|
true ->
|
||||||
?DEBUG("~p matches ~p", [Request#request.path, HandlerPathPrefix]),
|
?DEBUG("~p matches ~p", [Request#request.path, HandlerPathPrefix]),
|
||||||
%% LocalPath is the path "local to the handler", i.e. if
|
%% LocalPath is the path "local to the handler", i.e. if
|
||||||
|
Loading…
Reference in New Issue
Block a user