From f33a18313065000a82c7efff82c344d491d1fdf5 Mon Sep 17 00:00:00 2001 From: lookshe Date: Mon, 4 Jan 2016 23:53:38 +0100 Subject: removed unused file size check --- prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 5 ----- 1 file changed, 5 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 9aa0f7c..b4fbb31 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 @@ -47,11 +47,6 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event) if not filesize then origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing or invalid file size")); return true; - elseif filesize > file_size_limit then - 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)))); - return true; end local content_type = request:get_child_text("content-type"); -- cgit v1.2.3