coolboywcm commented on issue #9961:
URL: https://github.com/apache/apisix/issues/9961#issuecomment-1672376416

   I tried to modify the source code, import lua_zlib model, decompressed 
resp_body before generating the log, and solved this problem.
   The code is as follows:
   
   ```
   local zlib  = require("zlib")
   function _M.collect_body(conf, ctx)
     ......
     local headers = ngx_header
     if headers["content-encoding"] == "gzip" then
         local inflated_body, inflate_err = zlib.inflate()(final_body, "finish")
         .........
        ctx.resp_body = inflated_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: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to