diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-16 08:47:51 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-16 08:47:51 +0100 |
commit | eb3a20eb05a2562881c2709f2a351f6292bc81d0 (patch) | |
tree | 8c1de09debe914c2e0ef97b75f8f9beb49d0bf46 /plugins | |
parent | e4a558af4650391aff0c02a846884b4919ce87ad (diff) | |
download | prosody-eb3a20eb05a2562881c2709f2a351f6292bc81d0.tar.gz prosody-eb3a20eb05a2562881c2709f2a351f6292bc81d0.zip |
mod_http: Pass util.events object to API, fixes traceback
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |