aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-19 11:09:20 -0500
committerame <[email protected]>2024-04-19 11:09:20 -0500
commitcebd1b729739b020d6b3700c87c4ef8d4d67890a (patch)
treeab28f51d76a9eebc186ac6c50acd41a1ff3dca26 /tests
parent7ed170c58e9d9f8edab6e5226bf66d7a71c2222e (diff)
horay! more net code
Diffstat (limited to 'tests')
-rw-r--r--tests/net.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/net.lua b/tests/net.lua
index e482a6f..b3a2b1f 100644
--- a/tests/net.lua
+++ b/tests/net.lua
@@ -61,14 +61,8 @@ llib.net.listen(
end)
server:GET("/aa", function(res, req)
- --[[res.header["Content-Type"] = "text/plain"
- _G.server:lock()
- res:write("hi\n")
- res:write("next")
- _G.server:unlock()
- res:close()]]
res.header["Content-Type"] = "text/plain"
- res:send(_G.llib.io.readfile("tests/net.lua"))
+ res:sendfile("llib.dll")
end)
server:GET("/test55", function(res, req)
@@ -76,6 +70,7 @@ llib.net.listen(
res:send("<h2>you would never</h2>")
end)
+
end,
arg[1]