You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "kingluo (via GitHub)" <gi...@apache.org> on 2023/03/14 14:52:19 UTC
[GitHub] [apisix] kingluo commented on issue #9045: help request: body-transformer plugin not getting executed
kingluo commented on issue #9045:
URL: https://github.com/apache/apisix/issues/9045#issuecomment-1468247498
@singhjoga
> If you do not specify `input_format` and no `Content-Type` header, or body is `nil`, then this plugin will not parse the body before template rendering.
So, you could still do template rendering even if the request body is not JSON or XML.
I see your request template does not contain body template text, so what's your actual issue? header not set? empty body?
BTW, to avoid big body issues, it's recommended to use `require("apisix.core").request.get_body()` to read the body or refer to `_body` in your template.
--
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