diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-10 21:54:12 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-10 21:54:12 +0200 |
commit | 37eac64ae4ec7d0debae83e9b65b6c45a42880e8 (patch) | |
tree | 4f4d730107db34d035126545024e2b0b7ae951e2 /plugins | |
parent | 5239b02c93cd83d4254a9577deae7ab76e27395a (diff) | |
download | prosody-37eac64ae4ec7d0debae83e9b65b6c45a42880e8.tar.gz prosody-37eac64ae4ec7d0debae83e9b65b6c45a42880e8.zip |
mod_http_files: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_files.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index 6206d584..1dae0d6d 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -128,9 +128,9 @@ function serve(opts) data = data.data; elseif attr.mode == "directory" and path then if full_path:sub(-1) ~= "/" then - local path = { is_absolute = true, is_directory = true }; - for dir in orig_path:gmatch("[^/]+") do path[#path+1]=dir; end - response_headers.location = build_path(path); + local dir_path = { is_absolute = true, is_directory = true }; + for dir in orig_path:gmatch("[^/]+") do dir_path[#dir_path+1]=dir; end + response_headers.location = build_path(dir_path); return 301; end for i=1,#dir_indices do |