Changeset

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
parents 5245:f29741c96090
children 5248:13553f4132a8
files plugins/mod_http_files.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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