lilien1010 commented on a change in pull request #3577:
URL: https://github.com/apache/apisix/pull/3577#discussion_r579819385
##########
File path: apisix/plugins/response-rewrite.lua
##########
@@ -87,13 +112,26 @@ function _M.check_schema(conf)
end
end
+ if conf.vars then
+ local ok, err = expr.new(conf.vars)
+ if not ok then
+ return nil, "failed to validate the 'vars' expression: " .. err
+ end
+ end
+
return true
end
do
function _M.body_filter(conf, ctx)
+
+ local ok = vars_matched(conf, ctx)
Review comment:
done
##########
File path: apisix/plugins/response-rewrite.lua
##########
@@ -87,13 +112,26 @@ function _M.check_schema(conf)
end
end
+ if conf.vars then
+ local ok, err = expr.new(conf.vars)
+ if not ok then
+ return nil, "failed to validate the 'vars' expression: " .. err
+ end
+ end
+
return true
end
do
function _M.body_filter(conf, ctx)
+
Review comment:
fixed
##########
File path: apisix/plugins/response-rewrite.lua
##########
@@ -107,6 +145,12 @@ function _M.body_filter(conf, ctx)
end
function _M.header_filter(conf, ctx)
+
Review comment:
fixed
----------------------------------------------------------------
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]