You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/06/10 08:10:12 UTC

[GitHub] [incubator-apisix] membphis commented on issue #1684: Use `vars` to get Nginx build in parameter `request_body` failed

membphis commented on issue #1684:
URL: https://github.com/apache/incubator-apisix/issues/1684#issuecomment-641820011


   ```
   local body = vars[\"request_body\"]
           local a1 = body[\"a1\"]
           local a2 = body[\"a2\"]
           return a1 == \"a1\" and a2 == \"a2\"
   ```
   
   that is the wrong way to fetch the request body.
   
   please take a look at this:
   https://github.com/openresty/lua-nginx-module#ngxreqget_body_data


----------------------------------------------------------------
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:
users@infra.apache.org