more tests
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
local function nested_e()
|
local function nested_e()
|
||||||
ngx.exit(ngx.HTTP_INTERNAL_SERVER_ERROR)
|
if true then
|
||||||
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user