Software /
code /
prosody
Comparison
plugins/mod_http_files.lua @ 9462:6489d75ff1d6
mod_http_files: Silence luacheck warnings related to config variables
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Oct 2018 21:53:26 +0200 |
parent | 8757:861a7d6c12d8 |
child | 9463:f7530c846f98 |
comparison
equal
deleted
inserted
replaced
9461:cc19b8f8e692 | 9462:6489d75ff1d6 |
---|---|
87 | 87 |
88 function serve(opts) | 88 function serve(opts) |
89 if type(opts) ~= "table" then -- assume path string | 89 if type(opts) ~= "table" then -- assume path string |
90 opts = { path = opts }; | 90 opts = { path = opts }; |
91 end | 91 end |
92 -- luacheck: ignore 431 | |
92 local base_path = opts.path; | 93 local base_path = opts.path; |
93 local dir_indices = opts.index_files or dir_indices; | 94 local dir_indices = opts.index_files or dir_indices; |
94 local directory_index = opts.directory_index; | 95 local directory_index = opts.directory_index; |
95 local function serve_file(event, path) | 96 local function serve_file(event, path) |
96 local request, response = event.request, event.response; | 97 local request, response = event.request, event.response; |