AlinsRan commented on code in PR #12086: URL: https://github.com/apache/apisix/pull/12086#discussion_r2021993576
########## apisix/init.lua: ########## @@ -550,6 +550,12 @@ function _M.handle_upstream(api_ctx, route, enable_websocket) set_upstream_headers(api_ctx, server) + -- lua proxy the request to upstream + if api_ctx.lua_proxy_upstream then + common_phase("before_proxy") + return + end + -- run the before_proxy method in access phase first to avoid always reinit request common_phase("before_proxy") Review Comment: ```lua common_phase("before_proxy") if api_ctx.lua_proxy_upstream then return end ``` -- 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: notifications-unsubscr...@apisix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org