mod_http_files: Rename variable to avoid name clash [luacheck]

This commit is contained in:
Kim Alvefur 2018-10-10 21:54:12 +02:00
parent 35efbc8a8d
commit 8d82efbca7

View file

@ -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