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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]