# HG changeset patch # User Kim Alvefur # Date 1491257777 -7200 # Node ID 0c7802b958200e9518e4fbb92b65ce5e6c30375b # Parent 99c0b1bacdcd3262a06aad794321a4c0158faaec mod_http_upload: Fix halting of event propagation when request handler returns diff -r 99c0b1bacdcd -r 0c7802b95820 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Tue Apr 04 00:11:05 2017 +0200 +++ b/mod_http_upload/mod_http_upload.lua Tue Apr 04 00:16:17 2017 +0200 @@ -123,7 +123,7 @@ local request = stanza.tags[1]; local filename = request.attr.filename; local filesize = tonumber(request.attr.size); - handle_request(origin, stanza, namespace, filename, filesize); + return handle_request(origin, stanza, namespace, filename, filesize); end); module:hook("iq/host/"..legacy_namespace..":request", function (event) @@ -131,7 +131,7 @@ local request = stanza.tags[1]; local filename = request:get_child_text("filename"); local filesize = tonumber(request:get_child_text("size")); - handle_request(origin, stanza, legacy_namespace, filename, filesize); + return handle_request(origin, stanza, legacy_namespace, filename, filesize); end); -- http service