mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_http_files: Fix caching the stringified directory index
This commit is contained in:
parent
0197a4d854
commit
7c7e98953e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ function serve_file(event, path)
|
|||
end
|
||||
end
|
||||
data = "<!DOCTYPE html>\n"..tostring(html);
|
||||
cache[path] = { data = html, content_type = mime_map.html; hits = 0 };
|
||||
cache[path] = { data = data, content_type = mime_map.html; hits = 0 };
|
||||
response.headers.content_type = mime_map.html;
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue