diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-16 08:17:28 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-16 08:17:28 +0100 |
commit | 7c7e98953e06e6d622e7fe93970d91d99716bfe0 (patch) | |
tree | adbd1a4b87398aca36f56a1a83e6f0221193669f | |
parent | 0197a4d854394ae820f72d561482936428e51272 (diff) | |
download | prosody-7c7e98953e06e6d622e7fe93970d91d99716bfe0.tar.gz prosody-7c7e98953e06e6d622e7fe93970d91d99716bfe0.zip |
mod_http_files: Fix caching the stringified directory index
-rw-r--r-- | plugins/mod_http_files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_files.lua b/plugins/mod_http_files.lua index 764991b8..92617b09 100644 --- a/plugins/mod_http_files.lua +++ b/plugins/mod_http_files.lua @@ -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 |