Changeset

3176:d34f5d969940

mod_http_upload: use correct error condition RFC 6120 defines internal-server-error, not internal-server-failure.
author Jonas Wielicki <jonas@wielicki.name>
date Sun, 08 Jul 2018 13:04:46 +0200
parents 3175:44c5d7310c33
children 3177:4eff14ac6853
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Sun Jul 08 01:17:23 2018 +0200
+++ b/mod_http_upload/mod_http_upload.lua	Sun Jul 08 13:04:46 2018 +0200
@@ -140,14 +140,14 @@
 
 	if not created then
 		module:log("error", "Could not create directory for slot: %s", err);
-		return nil, st.error_reply(stanza, "wait", "internal-server-failure");
+		return nil, st.error_reply(stanza, "wait", "internal-server-error");
 	end
 
 	local ok = datamanager.list_append(username, host, module.name, {
 		filename = filename, dir = random_dir, size = filesize, time = os.time() });
 
 	if not ok then
-		return nil, st.error_reply(stanza, "wait", "internal-server-failure");
+		return nil, st.error_reply(stanza, "wait", "internal-server-error");
 	end
 
 	local slot = random_dir.."/"..filename;