diff options
| author | ame <[email protected]> | 2024-04-19 11:09:20 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-04-19 11:09:20 -0500 |
| commit | 2b6f9144b282628ecb1ac77052a45de0c60d4716 (patch) | |
| tree | ab28f51d76a9eebc186ac6c50acd41a1ff3dca26 /tests | |
| parent | a0d8a6f3fe365aba0d416f4c33b2c547e4e35820 (diff) | |
horay! more net code
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/net.lua | 9 |
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]
|
