# HG changeset patch # User Kim Alvefur # Date 1617635712 -7200 # Node ID 2c9db2278fedf594a1c595aaf1e9748b6a4fd3f3 # Parent 21706a581b8a180ca851c228374b541c84a1102c mod_http_file_share: Group related properties for readability diff -r 21706a581b8a -r 2c9db2278fed plugins/mod_http_file_share.lua --- a/plugins/mod_http_file_share.lua Mon Apr 05 16:24:39 2021 +0200 +++ b/plugins/mod_http_file_share.lua Mon Apr 05 17:15:12 2021 +0200 @@ -134,12 +134,16 @@ function get_authz(slot, uploader, filename, filesize, filetype) return jwt.sign(secret, { + -- token properties sub = uploader; + exp = os.time()+300; + + -- slot properties + slot = slot; + -- file properties filename = filename; filesize = filesize; filetype = filetype; - slot = slot; - exp = os.time()+300; }); end