Miss-you opened a new issue #3243:
URL: https://github.com/apache/apisix/issues/3243


   ### Issue description
   `ngx.req.read_body` should be called in the if branch. `read_body` here will 
partially increase the overall request latency and should not be called if not 
necessary. 
   
   Next we need a local variable:
   `local ngx_read_body = ngx.req.read_body`
   
   ref:
   
https://github.com/apache/apisix/blob/master/apisix/plugins/wolf-rbac.lua#L330
   
   ### Environment
   
   * apisix version (cmd: `apisix version`):
   * OS: (cmd: `uname -a`)
   * OpenResty / Nginx version: (cmd: `nginx -V` or `openresty -V`)
   
   ### Minimal test code / Steps to reproduce the issue
   
   1.
   2.
   3.
   
   ### What's the actual result? (including assertion message & call stack if 
applicable)
   
   ### What's the expected result?
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to