GongchuangSu commented on issue #11050:
URL: https://github.com/apache/apisix/issues/11050#issuecomment-2408288588

   The temporary solution can be implemented by modifying and overriding the 
source forward-auth.lua script
   ```lua
       local httpc = http.new()
       httpc:set_timeout(conf.timeout)
   --     if params.method == "POST" then
   --         local client_body_reader, err = httpc:get_client_body_reader()
   --         if client_body_reader then
   --             params.body = client_body_reader
   --         else
   --             core.log.warn("failed to get client_body_reader. err: ", err,
   --             " using core.request.get_body() instead")
   --             params.body = core.request.get_body()
   --         end
   --     end
       if params.method == "POST" then
           params.body = core.request.get_body()
       end
   ```


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

Reply via email to