comparison mod_http_upload/mod_http_upload.lua @ 2476:024a4143baef

mod_http_upload: Add missing return statement
author Kim Alvefur <zash@zash.se>
date Sun, 29 Jan 2017 19:14:47 +0100
parents 54c42b097984
children c32ca5ad2539
comparison
equal deleted inserted replaced
2475:54c42b097984 2476:024a4143baef
17 local t_concat = table.concat; 17 local t_concat = table.concat;
18 local t_insert = table.insert; 18 local t_insert = table.insert;
19 local s_upper = string.upper; 19 local s_upper = string.upper;
20 20
21 local function join_path(...) 21 local function join_path(...)
22 table.concat({ ... }, package.config:sub(1,1)); 22 return table.concat({ ... }, package.config:sub(1,1));
23 end 23 end
24 24
25 -- config 25 -- config
26 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB 26 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB
27 27