mod_http_files: Fix caching the stringified directory index
authorKim Alvefur <zash@zash.se>
Sun, 16 Dec 2012 08:17:28 +0100
changeset 5247 9257f4c47ffa
parent 5245 f29741c96090
child 5248 13553f4132a8
mod_http_files: Fix caching the stringified directory index
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 = "<!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