mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_http: Pass util.events object to API, fixes traceback
This commit is contained in:
parent
2bd1debc3c
commit
060ab50b41
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ local function get_ip_from_request(request)
|
|||
return ip;
|
||||
end
|
||||
|
||||
module:wrap_object_event(server, false, function (handlers, event_name, event_data)
|
||||
module:wrap_object_event(server._events, false, function (handlers, event_name, event_data)
|
||||
local request = event_data.request;
|
||||
if request then
|
||||
-- Not included in eg http-error events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue