Software /
code /
prosody
Changeset
13446:dba7073f1452
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 27 Feb 2024 17:15:36 +0100 |
parents | 13444:783706350faa (current diff) 13445:360e05f33835 (diff) |
children | 13447:5c9df28a57bb |
files | net/http/files.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/net/http/files.lua Sat Feb 24 17:45:50 2024 +0100 +++ b/net/http/files.lua Tue Feb 27 17:15:36 2024 +0100 @@ -58,7 +58,7 @@ local cache = new_cache(opts.cache_size or 256); local cache_max_file_size = tonumber(opts.cache_max_file_size) or 1024 -- luacheck: ignore 431 - local base_path = opts.path; + local base_path = assert(opts.path, "invalid argument to net.http.files.path(), missing required 'path'"); local dir_indices = opts.index_files or { "index.html", "index.htm" }; local directory_index = opts.directory_index; local function serve_file(event, path)