Mercurial > prosody-modules
changeset 2648:4c92e2e897c8
mod_http_upload: Split some long lines [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 26 Mar 2017 23:05:31 +0200 (2017-03-26) |
parents | d8487d5bd4fb |
children | abea818eed7b |
files | mod_http_upload/mod_http_upload.lua |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua Sun Mar 26 21:09:02 2017 +0200 +++ b/mod_http_upload/mod_http_upload.lua Sun Mar 26 23:05:31 2017 +0200 @@ -36,7 +36,8 @@ --- sanity local parser_body_limit = module:context("*"):get_option_number("http_max_content_size", 10*1024*1024); if file_size_limit > parser_body_limit then - module:log("warn", "%s_file_size_limit exceeds HTTP parser limit on body size, capping file size to %d B", module.name, parser_body_limit); + module:log("warn", "%s_file_size_limit exceeds HTTP parser limit on body size, capping file size to %d B", + module.name, parser_body_limit); file_size_limit = parser_body_limit; end @@ -98,9 +99,11 @@ local random; repeat random = uuid(); - until lfs.mkdir(join_path(storage_path, random)) or not lfs.attributes(join_path(storage_path, random, filename)) + until lfs.mkdir(join_path(storage_path, random)) + or not lfs.attributes(join_path(storage_path, random, filenams)) - datamanager.list_append(origin.username, origin.host, module.name, { filename = join_path(storage_path, random, filename), size = filesize, time = os.time() }); + datamanager.list_append(origin.username, origin.host, module.name, { + filename = join_path(storage_path, random, filename), size = filesize, time = os.time() }); local slot = random.."/"..filename; pending_slots[slot] = origin.full_jid; local base_url = module:http_url();