aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-02-10 18:42:42 +0100
committerBadlop <badlop@process-one.net>2010-02-10 20:17:09 +0100
commit071aa123e8332e8955d3c2ce3b5a82dd9080df13 (patch)
tree36eaef8c402f38693289e67dc17ad70e5e49a05a /src
parentFix character in README file (diff)
Allow a request_handler to serve a file in root of HTTP
Diffstat (limited to 'src')
-rw-r--r--src/web/ejabberd_http.erl3
1 files changed, 2 insertions, 1 deletions
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