1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Rewrite websockets for Lua (Step 3 of ?)

This commit is contained in:
bel
2014-05-18 00:09:14 +02:00
parent efa959642c
commit c9adad6e81
3 changed files with 62 additions and 37 deletions

View File

@@ -57,7 +57,8 @@ mg.write("<p>\n");
mg.write("Files in " .. lfs.currentdir())
mg.write("\n<ul>\n")
for f in lfs.dir(".") do
mg.write("<li>" .. f .. "</li>\n")
local mime = mg.get_mime_type(f)
mg.write("<li>" .. f .. " (" .. mime .. ")</li>\n")
local at = lfs.attributes(f);
recurse(at)
end