Comparison

mod_http_upload/mod_http_upload.lua @ 2666:99c0b1bacdcd

mod_http_upload: Where did those parenthesis come from?
author Kim Alvefur <zash@zash.se>
date Tue, 04 Apr 2017 00:11:05 +0200
parent 2665:cfb7936ff61f
child 2667:0c7802b95820
comparison
equal deleted inserted replaced
2665:cfb7936ff61f 2666:99c0b1bacdcd
17 local t_insert = table.insert; 17 local t_insert = table.insert;
18 local s_upper = string.upper; 18 local s_upper = string.upper;
19 local have_id, id = pcall(require, "util.id"); -- Only available in 0.10+ 19 local have_id, id = pcall(require, "util.id"); -- Only available in 0.10+
20 local uuid = require"util.uuid".generate; 20 local uuid = require"util.uuid".generate;
21 if have_id then 21 if have_id then
22 uuid = id.medium(); 22 uuid = id.medium;
23 end 23 end
24 24
25 local function join_path(...) -- COMPAT util.path was added in 0.10 25 local function join_path(...) -- COMPAT util.path was added in 0.10
26 return table.concat({ ... }, package.config:sub(1,1)); 26 return table.concat({ ... }, package.config:sub(1,1));
27 end 27 end