# HG changeset patch # User Kim Alvefur # Date 1521186471 -3600 # Node ID 71da54c7f797507c4c276c357b8f8dca651ec988 # Parent d3bbff01df9d5b2f8a37adb85da474266adc0346 mod_http: Pass util.events object to API, fixes traceback diff -r d3bbff01df9d -r 71da54c7f797 plugins/mod_http.lua --- a/plugins/mod_http.lua Thu Mar 15 17:52:11 2018 +0100 +++ b/plugins/mod_http.lua Fri Mar 16 08:47:51 2018 +0100 @@ -166,7 +166,7 @@ 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