Software /
code /
prosody
Diff
plugins/mod_http_files.lua @ 5247:9257f4c47ffa
mod_http_files: Fix caching the stringified directory index
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 16 Dec 2012 08:17:28 +0100 |
parent | 5238:0cc0359d8c39 |
child | 5248:13553f4132a8 |
line wrap: on
line diff
--- 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 = "<!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