soulbird commented on issue #8087: URL: https://github.com/apache/apisix/issues/8087#issuecomment-1294298496
> Please read document https://apisix.apache.org/docs/apisix/terminology/plugin/#plugin-common-configuration Currently apisix only support request parameters, so your configuration is not right. You should remove condition on vars > > ``` > "vars": [ > [ > "status", > "==", > 200 > ], > [ > "content-type", > "==", > "text/html; charset=utf-8" > ] > ] > ``` > > to > > ``` > "var": [] > ``` The response-rewrite plugin has already received the response when executing the `vars` expression, so it can contain some variables in the response, you can check this test case: https://github.com/apache/apisix/blob/master/ t/plugin/response-rewrite2.t#L236 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
