plugins/mod_http_files.lua
changeset 7233 20246b139607
parent 7232 dcc8ed11173c
child 7234 c018a44b822a
--- a/plugins/mod_http_files.lua	Thu Mar 03 15:30:00 2016 +0100
+++ b/plugins/mod_http_files.lua	Thu Mar 03 15:31:46 2016 +0100
@@ -75,6 +75,9 @@
 			out[c] = component;
 		end
 	end
+	if path:sub(-1,-1) == "/" then
+		out[c+1] = "";
+	end
 	return "/"..table.concat(out, "/");
 end