Browse Source

Update args.lua

TJ Borromeo 8 years ago
parent
commit
19bac62e07
1 changed files with 1 additions and 2 deletions
  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")