aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web/ejabberd_http.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/ejabberd_http.erl b/src/web/ejabberd_http.erl
index 57d0d0522..47b206395 100644
--- a/src/web/ejabberd_http.erl
+++ b/src/web/ejabberd_http.erl
@@ -325,7 +325,9 @@ process(Handlers, Request) ->
%% requested path is "/test/foo/bar", the local path is
%% ["foo", "bar"]
LocalPath = lists:nthtail(length(HandlerPathPrefix), Request#request.path),
- HandlerModule:process(LocalPath, Request);
+ R = HandlerModule:process(LocalPath, Request),
+ ejabberd_hooks:run(http_request_debug, [{LocalPath, Request}]),
+ R;
false ->
process(HandlersLeft, Request)
end.