aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorame <[email protected]>2024-02-13 14:14:20 -0600
committerame <[email protected]>2024-02-13 14:14:20 -0600
commit0b28025b0b69266905a9f6235c7476bb799eea37 (patch)
tree4ca0fc810be6265be8c5ee00f592e64af8c8058e /tests
parentd85b1d781655663ee52d180e0fb9abe7e476adf5 (diff)
idk
Diffstat (limited to 'tests')
-rw-r--r--tests/net.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/net.lua b/tests/net.lua
index 3320355..f521bc7 100644
--- a/tests/net.lua
+++ b/tests/net.lua
@@ -34,18 +34,20 @@ llib.net.listen(
--print("hi from first")
--llib.io.pprint(llib.crypto.md5("hewwo"))
--_G.sleep(1)
- _G.llib.io.pprint(_G._G._G._llib.crypto.md5("hi"))
+ --_G.llib.io.pprint(_G._G._G._llib.crypto.md5("hi"))
--_G.llib.io.pprint(_G._Go)
--_G.llib.io.pprint(_G.wo.crypto.md5("55"))
end)
server:GET("/aa", function(res, req)
- res.header["Content-Type"] = "text/plain"
+ --[[res.header["Content-Type"] = "text/plain"
_G.server:lock()
res:write("hi\n")
res:write("next")
_G.server:unlock()
- res:close()
+ res:close()]]
+ res.header["Content-Type"] = "text/plain"
+ res:send(_G.llib.io.readfile("tests/net.lua"))
end)
server:GET("/test", function(res, req)