more tests

This commit is contained in:
2022-03-12 21:54:40 +08:00
parent e873cca2df
commit 5eefb9dc70
+5 -1
View File
@@ -1,8 +1,12 @@
local function nested_e() local function nested_e()
if true then
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR) ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
else
return "FOO"
end
end end
nested_e() local r = nested_e()
ngx.say("OK") ngx.say("OK")
-- ➤ curl test.localhost:8088/api/ngx/test/nested_exit -- ➤ curl test.localhost:8088/api/ngx/test/nested_exit