spacewander opened a new issue #1365: Better to avoid responsing in header_filter_by_lua and body_filter_by_lua URL: https://github.com/apache/incubator-apisix/issues/1365 https://github.com/apache/incubator-apisix/blob/master/lua/apisix.lua#L142 ``` if phase ~= "log" then for i = 1, #plugins, 2 do local phase_fun = plugins[i][phase] if phase_fun then local code, body = phase_fun(plugins[i + 1], api_ctx) if code or body then core.response.exit(code, body) end end end return api_ctx end ``` Since `ngx.print` is meaningless after `content_by_lua`, maybe we can treat the filter phases as another log phase?
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services