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([===[ - Arguments

Arguments

-
- First name:

- Last name:

- MaleFemale
- -
+ Arguments by GET

Arguments by GET

]===]) - coroutine.yield() - if args["submit"] ~= nil then + if args.submit == nil then + connection:send([===[ +
+ First name:

+ Last name:

+ MaleFemale
+ +
+ ]===]) + else connection:send("

Received the following values:

\n") end - - connection:send("\n") - + connection:send("") end