You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/18 02:15:56 UTC

[GitHub] [apisix] tzssangglass commented on issue #6352: How to forward to the original uri in the balancer.lua, when it have change in the plugin?

tzssangglass commented on issue #6352:
URL: https://github.com/apache/apisix/issues/6352#issuecomment-1043743742


   1. you need rto use `balancer.recreate_request` after you changed the uri;
   2. you can hook `before_proxy` in plugins to do this, see: https://github.com/apache/apisix/blob/b52f95b53c689cfd2fd0f4cbf0fefedd4cce9b5e/apisix/balancer.lua#L342-L346, then you don't need to call  `balancer.recreate_request`


-- 
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-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org