mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Add new debuging hook to the http receiving process.
The new hook is called http_request_debug, and receive the LocalPath and Request as parameter. SVN Revision: 2961
This commit is contained in:
parent
787e078f6a
commit
bc70e90853
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user