Software /
code /
prosody
Diff
plugins/mod_http.lua @ 8596:71da54c7f797
mod_http: Pass util.events object to API, fixes traceback
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Mar 2018 08:47:51 +0100 |
parent | 8594:b4a0bc46c82d |
child | 8969:48d0b908f8b6 |
line wrap: on
line diff
--- 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