diff options
| author | ame <[email protected]> | 2024-02-13 14:14:20 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-13 14:14:20 -0600 |
| commit | cec56b5d601c3f3f09841dd0c24cae6ea3d734d8 (patch) | |
| tree | 4ca0fc810be6265be8c5ee00f592e64af8c8058e /tests/net.lua | |
| parent | 04b1b0fc52287228a2c9bc6a3cbf9a85bdd1f2fc (diff) | |
idk
Diffstat (limited to 'tests/net.lua')
| -rw-r--r-- | tests/net.lua | 8 |
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)
|
