# HG changeset patch # User Kim Alvefur # Date 1355642248 -3600 # Node ID 9257f4c47ffa6234b322f14241fc951537ed8c83 # Parent f29741c960909a498d32d4a9c1e8704ffe4aed3b mod_http_files: Fix caching the stringified directory index diff -r f29741c96090 -r 9257f4c47ffa plugins/mod_http_files.lua --- a/plugins/mod_http_files.lua Sat Dec 15 05:34:30 2012 +0100 +++ b/plugins/mod_http_files.lua Sun Dec 16 08:17:28 2012 +0100 @@ -98,7 +98,7 @@ end end data = "\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