Open bourne-3 opened 8 months ago
For this kind of question about why it is able to work, I think you should delve into the code to analyze the problem.
You required to read POST argument in balancer_by_lua*.
As per documentation, ngx.req.read_body() is not available in the balancer_by_lua*
In order to access body value in the balancer_by_lua, it is suggested to read required value in the rewrite_by_lua or access_by_lua phase and store value in the ngx.ctx i.e request context.
you can access ngx.ctx in the balancer_by_lua* and take required operation
hi the openresty version of mine is 1.13
reproduction on the case: