aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-09-11 00:02:08 -0500
committeramelia squires <[email protected]>2024-09-11 00:02:08 -0500
commitbd405bc6f3104ba7c6d41c42561975d73fd81134 (patch)
tree25f1642859355d7cbe82a8b57549c2d2f52f8dbe /tests
parenteda53f915dc319cec7a4fe680734db87a113fe5e (diff)
add res:stop
Diffstat (limited to 'tests')
-rw-r--r--tests/net.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/net.lua b/tests/net.lua
index 90a18c3..d1b5369 100644
--- a/tests/net.lua
+++ b/tests/net.lua
@@ -18,10 +18,11 @@ net.listen(
io.pprint("online")
_G.server = server
- server:all("/{name}", function(res, req)
+ server:POST("/{name}", function(res, req)
--print("name is "..req.name)
print("name")
io.pprint(req.paramaters)
+ res:stop()
end)
server:all("/{name}/nya/{user}", function(res, req)