You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "soulbird (via GitHub)" <gi...@apache.org> on 2023/03/23 07:00:05 UTC

[GitHub] [apisix] soulbird commented on a diff in pull request #9112: feat: support variable when rewrite header in proxy rewrite plugin

soulbird commented on code in PR #9112:
URL: https://github.com/apache/apisix/pull/9112#discussion_r1145759545


##########
apisix/plugins/proxy-rewrite.lua:
##########
@@ -41,6 +42,10 @@ local lrucache = core.lrucache.new({
     type = "plugin",
 })
 
+core.ctx.register_var("proxy_rewrite_regex_uri_captures", function(ctx)
+    return ctx.proxy_rewrite_regex_uri_captures

Review Comment:
   Why need this?



-- 
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