diff --git a/http/args.lua b/http/args.lua
index 24ea28a..ab565ad 100644
--- a/http/args.lua
+++ b/http/args.lua
@@ -1,26 +1,25 @@
-return function (connection, args)
+return function (connection, req, args)
dofile("httpserver-header.lc")(connection, 200, 'html')
connection:send([===[
-
ArgumentsArguments
-
+ Arguments by GETArguments by GET
]===])
- coroutine.yield()
- if args["submit"] ~= nil then
+ if args.submit == nil then
+ connection:send([===[
+
+ ]===])
+ else
connection:send("Received the following values:
")
- coroutine.yield()
for name, value in pairs(args) do
connection:send('- ' .. name .. ': ' .. tostring(value) .. "
\n")
- coroutine.yield()
end
+ connection:send("
\n")
end
-
- connection:send("\n")
-
+ connection:send("")
end