zuiyangqingzhou commented on issue #4905:
URL: https://github.com/apache/apisix/issues/4905#issuecomment-906868206


   Here's my test code
   ```
   server {
           server_name 127.0.0.1; #
           listen 6688;
   
           location / {
               access_by_lua_block {
                   ngx.log(ngx.ERR, "run access block")
                   ngx.say("AAA")
               }
               content_by_lua_block {
                   ngx.log(ngx.ERR, "run content block")
                   ngx.say("BBB")
               }
               body_filter_by_lua_block {
                   ngx.log(ngx.ERR, "run body filter")
                   ngx.arg[1] = "CCC"
                   ngx.arg[2] = true
               }
           }
       }
   ```
   
   Here is my test log
   ```
   2021/08/27 09:57:28 [error] 44873#22580957: *1 [lua] 
access_by_lua(nginx.conf:75):2: run access block, client: 127.0.0.1, server: 
127.0.0.1, request: "GET / HTTP/1.1", host: "127.0.0.1:6688"
   2021/08/27 09:57:28 [error] 44873#22580957: *1 [lua] body_filter_by_lua:2: 
run body filter, client: 127.0.0.1, server: 127.0.0.1, request: "GET / 
HTTP/1.1", host: "127.0.0.1:6688"
   ```
   
   You can see that only access_by_lua_block are called and 
content_by_lua_block not, I mean that the phase before the 
body_filter_by_lua_block should be called   @spacewander 


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