diff options
author | steckbrief <steckbrief@chefmail.de> | 2016-08-22 16:59:40 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2016-08-22 16:59:40 +0200 |
commit | 1b4c02e5ca23781bef89be5e8497c0f225ff3036 (patch) | |
tree | cd6b8de906892d991cee2863e816e7cea6f58f74 | |
parent | 59fe1257143125df2510145b2e54b2ec15ed6653 (diff) |
exit module after sending error reply in case storage backend returned error code 403
-rw-r--r-- | prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 2 |
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; |