From 3d23a687aae9b675f20fbf7235428323b4da58cc Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sun, 16 Dec 2012 08:17:28 +0100
Subject: mod_http_files: Fix caching the stringified directory index

---
 plugins/mod_http_files.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

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
 
-- 
cgit v1.2.3