Update args.lua

This commit is contained in:
TJ Borromeo 2015-07-18 21:51:09 -07:00
parent cac11d9a1a
commit 19bac62e07

View File

@ -18,8 +18,7 @@ return function (connection, args)
connection:send('<h2>Received the following values:</h2>')
connection:send("<ul>\n")
for name, value in pairs(args) do
if value == nil then value = "nil" end
connection:send('<li><b>' .. name .. ':</b> ' .. value .. "<br></li>\n")
connection:send('<li><b>' .. name .. ':</b> ' .. tostring(value) .. "<br></li>\n")
end
connection:send("</ul>\n")