aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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]