diff options
| author | ame <[email protected]> | 2024-02-28 11:29:45 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-28 11:29:45 -0600 |
| commit | 3d583677802859b77fac96170b5c7fe81c99cf58 (patch) | |
| tree | 61c841992c9a567353a9d28f9f5955efb6720be3 /tests | |
| parent | 559556dc6cb4bd025da4b6855f54162baab9b249 (diff) | |
todo: merge recv full and file parsing
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/net.lua b/tests/net.lua index 0c2cb85..45aabc0 100644 --- a/tests/net.lua +++ b/tests/net.lua @@ -1,5 +1,5 @@ require "llib"
-llib.config.set({max_depth=5})
+llib.config.set({max_depth=1})
--local print = llib.io.pprint
sleep = function(a)
local sec = tonumber(os.clock() + a);
@@ -17,6 +17,7 @@ llib.net.listen( function(server)
--llib = nil
--llib.io.pprint(_G)
+ llib.io.pprint("online")
_G.server = server
server:all("/*", function(res, req)
--llib.io.pprint(res)
@@ -43,7 +44,8 @@ llib.net.listen( --print(req._bytes)
--res:send(_G.llib.io.readfile("llib.dll"))
--_G.llib.io.pprint(_G.llib.crypto.md5(_G.llib.io.readfile(".gitignore")))
- _G.llib.io.pprint(req)
+ --_G.llib.io.pprint(req)
+ res:send("owo")
end)
server:GET("/aa", function(res, req)
|
