-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support hook response body for ext-plugin #6968
Conversation
function _M.before_proxy(conf, ctx) | ||
local http_obj = get_http_obj(ctx) | ||
local res, err = get_response(ctx, http_obj) | ||
if not res or err then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 100 has judgment that res is nil?
|
||
if code == 0 then | ||
-- runner change body only, we should set code. | ||
code = body and res.status or nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look like it's covered in ngx.status = code or res.status
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ping @soulbird
Description
support hook response body for ext-plugin
Checklist