diff options
author | lookshe <github@lookshe.org> | 2016-01-04 23:53:38 +0100 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2016-01-04 23:53:38 +0100 |
commit | f33a18313065000a82c7efff82c344d491d1fdf5 (patch) | |
tree | 8756137113b8f082bb84841efcf9ba9a0916429a /prosody-module | |
parent | 5eb89338458575933798c9fdf436029e9f842493 (diff) |
removed unused file size check
Diffstat (limited to '')
-rw-r--r-- | prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 5 |
1 files changed, 0 insertions, 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"); |