In result of static analyse of nginx source code (including lua-nginx-module) with Svace static analyzer I found error of cathegory "UNREACHABLE_CODE" (checker finds source code that can't be executed) in ngx_http_lua_util.c
this minor error affects ngx_http_lua_send_http10_headers() function in lines 761-771 of ngx_http_lua_util.c
line 769 is unreachable because it's condition (r->headers_out.content_length) not compliant to context condition in line 761 (r->headers_out.content_length == NULL). How about to review this code area?
In result of static analyse of nginx source code (including lua-nginx-module) with Svace static analyzer I found error of cathegory "UNREACHABLE_CODE" (checker finds source code that can't be executed) in ngx_http_lua_util.c
this minor error affects
ngx_http_lua_send_http10_headers()
function in lines 761-771 of ngx_http_lua_util.chttps://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_util.c#L761-L771
line 769 is unreachable because it's condition
(r->headers_out.content_length)
not compliant to context condition in line 761(r->headers_out.content_length == NULL)
. How about to review this code area?