spacewander commented on code in PR #6968:
URL: https://github.com/apache/apisix/pull/6968#discussion_r867643327
##########
apisix/plugins/ext-plugin-post-resp.lua:
##########
@@ -162,7 +162,7 @@ function _M.before_proxy(conf, ctx)
if err then
core.log.error(err)
- return ngx.headers_sent and nil or 502
+ return not ngx.headers_sent and 502
Review Comment:
It would return `false` instead of `nil`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]