yxudong commented on issue #4301: URL: https://github.com/apache/apisix/issues/4301#issuecomment-847839809
Hi, everyone. It's seems that there is an easy solution to this problem. Just change `body_filter_by_lua` phase to `header_filter_by_lua` phase, because `body_filter_by_lua` may not be executed in some case, but `header_filter_by_lua` is always will be executed. At least, It's work in all the scenarios I can think of after my experiment. In addition, `sw_tracer:finish` should be called in header_filter_by_lua phase logically, because `header_filter_by_lua` phase is before `body_filter_by_lua` phase. Does it work this solution? Or Is there anything I missed. -- 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: [email protected]
