spacewander commented on a change in pull request #5600:
URL: https://github.com/apache/apisix/pull/5600#discussion_r757205933
##########
File path: apisix/plugins/ext-plugin/init.lua
##########
@@ -273,6 +274,12 @@ local function handle_extra_info(ctx, input)
local var_name = var_req:Name()
res = ctx.var[var_name]
+ elseif info_type == extra_info.ReqBody then
+ local info = req:Info()
+ local reqbody_req = extra_info_reqbody.New()
+ reqbody_req:Init(info.bytes, info.pos)
+
+ res = core.request.get_body()
Review comment:
Better to log down err if it is not nil.
--
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]