Changeset

2443:7f9ff36dc8d5

mod_http_upload: Update for size limit error reporting change in XEP-0363 v0.2 (fixes #813)
author Kim Alvefur <zash@zash.se>
date Mon, 16 Jan 2017 01:40:45 +0100
parents 2442:b2a198665946
children 2444:3e9f9cef9c0e
files mod_http_upload/mod_http_upload.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Thu Jan 12 10:13:58 2017 +0000
+++ b/mod_http_upload/mod_http_upload.lua	Mon Jan 16 01:40:45 2017 +0100
@@ -79,7 +79,7 @@
 		module:log("debug", "File too large (%d > %d)", filesize, file_size_limit);
 		origin.send(st.error_reply(stanza, "modify", "not-acceptable", "File too large",
 			st.stanza("file-too-large", {xmlns=xmlns_http_upload})
-				:tag("max-size"):text(tostring(file_size_limit))));
+				:tag("max-file-size"):text(tostring(file_size_limit))));
 		return true;
 	end
 	local reply = st.reply(stanza);