Skip to content

Commit 86fc53c

Browse files
committed
fix(runloop) pass ngx.ctx on response phase errors
1 parent e3430b7 commit 86fc53c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kong/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ do
826826
if res.truncated then
827827
kong_global.set_phase(kong, PHASES.error)
828828
ngx.status = 502
829-
return kong_error_handlers(ngx)
829+
return kong_error_handlers(ctx)
830830
end
831831

832832
kong_global.set_phase(kong, PHASES.response)

0 commit comments

Comments
 (0)