spacewander commented on a change in pull request #5600:
URL: https://github.com/apache/apisix/pull/5600#discussion_r757215569



##########
File path: apisix/plugins/ext-plugin/init.lua
##########
@@ -279,7 +279,12 @@ local function handle_extra_info(ctx, input)
         local reqbody_req = extra_info_reqbody.New()
         reqbody_req:Init(info.bytes, info.pos)
 
-        res = core.request.get_body()
+        local err
+        res, err = core.request.get_body()
+        if not res then

Review comment:
       We need to check the err instead, as the body can be nil when there is 
no body.




-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to