aboutsummaryrefslogtreecommitdiffstats
path: root/prosody-module/mod_http_upload_external
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-08-22 16:59:40 +0200
committersteckbrief <steckbrief@chefmail.de>2016-08-22 16:59:40 +0200
commit1b4c02e5ca23781bef89be5e8497c0f225ff3036 (patch)
treecd6b8de906892d991cee2863e816e7cea6f58f74 /prosody-module/mod_http_upload_external
parent59fe1257143125df2510145b2e54b2ec15ed6653 (diff)
exit module after sending error reply in case storage backend returned error code 403
Diffstat (limited to 'prosody-module/mod_http_upload_external')
-rw-r--r--prosody-module/mod_http_upload_external/mod_http_upload_external.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua
index ab7c0e0..64d5e3c 100644
--- a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua
+++ b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua
@@ -107,6 +107,7 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event)
end
elseif statuscode == 403 and errobj["msg"] ~= nil then
origin.send(st.error_reply(stanza, "cancel", "internal-server-error", errobj.msg));
+ return true;
else
origin.send(st.error_reply(stanza, "cancel", "undefined-condition", "msg or err_code not found"));
return true;
@@ -172,6 +173,7 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event)
end
elseif statuscode == 403 and errobj["msg"] ~= nil then
origin.send(st.error_reply(stanza, "cancel", "internal-server-error", errobj.msg));
+ return true;
else
origin.send(st.error_reply(stanza, "cancel", "undefined-condition", "msg or err_code not found"));
return true;