From eb3a20eb05a2562881c2709f2a351f6292bc81d0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 16 Mar 2018 08:47:51 +0100 Subject: mod_http: Pass util.events object to API, fixes traceback --- plugins/mod_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_http.lua b/plugins/mod_http.lua index e6cbfc78..3f7190d2 100644 --- a/plugins/mod_http.lua +++ b/plugins/mod_http.lua @@ -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 -- cgit v1.2.3