mod_http: Pass util.events object to API, fixes traceback

This commit is contained in:
Kim Alvefur 2018-03-16 08:47:51 +01:00
parent 2bd1debc3c
commit 060ab50b41

View file

@ -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