jiangfucheng commented on code in PR #9864:
URL: https://github.com/apache/apisix/pull/9864#discussion_r1271269858
##########
apisix/plugins/ext-plugin/init.lua:
##########
@@ -655,6 +655,12 @@ local rpc_handlers = {
end
end
+ local len = rewrite:BodyLength()
+ if len > 0 then
+ let body = rewrite:BodyAsString()
+ ngx.req.set_body_data(body)
Review Comment:
```suggestion
ngx.req.read_body()
ngx.req.set_body_data(body)
```
We need call `ngx.req.read_body()` before `set_body_data`
--
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]