agile6v commented on a change in pull request #979: feature: support regex_uri
option in proxy-rewrite plugin
URL: https://github.com/apache/incubator-apisix/pull/979#discussion_r362519784
##########
File path: lua/apisix/plugins/proxy-rewrite.lua
##########
@@ -82,6 +82,16 @@ function _M.check_schema(conf)
return false, err
end
+ if conf.regex_uri and #conf.regex_uri > 0 then
+ local _, _, err = re_sub("/fake_uri", conf.regex_uri[1],
Review comment:
The `/fake_uri` is used to verify the validity of regex expression.
----------------------------------------------------------------
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]
With regards,
Apache Git Services