liuxiran commented on issue #2703: URL: https://github.com/apache/apisix/issues/2703#issuecomment-725783654
> `ngx.exit` will interrupt the execution of the current request and return status code to Nginx. > >  > > However, if you execute `ngx.exit` during the access phase, it only interrupts the request processing phase, and the response phase will still process it, i.e. if you configure the response-rerite plugin, it will force overwriting of your response information (e.g. rsp code). Thanks for your instructions @Miss-you , we will try to feedback to the issue you mentioned after further digestion. So the above problem I think is not a bug, it may considered as an enhancement that response rewrite only rewrite the response comes from upstream. ---------------------------------------------------------------- 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: [email protected]
