TJ Borromeo 8 éve
szülő
commit
19bac62e07
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      http/args.lua

+ 1 - 2
http/args.lua

@@ -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")