spacewander commented on issue #8027: URL: https://github.com/apache/apisix/issues/8027#issuecomment-1263271238
Look like this code "works in the real world". > Nginx 的 upstream 相关模块,以及 OpenResty 的 content_by_lua,会单独发送一个设置了 last_buf 的空 buffer,来表示流的结束。这算是一个约定俗成的惯例,所以有必要在运行相关逻辑之前,检查 ngx.arg[1] 是否为空。当然反过来不一定成立,ngx.arg[2] == true 并不代表 ngx.arg[1] 一定为空。 https://segmentfault.com/a/1190000007483746 I will submit a fix to solve this problem. Anyway, the current code won't affect the correctness unless the output is from a third-party Nginx module and it doesn't follow Nginx's upstream behavior. -- 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]
