aboutsummaryrefslogtreecommitdiff
path: root/tests/net.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/net.lua')
-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)