Closed monkeyDluffy6017 closed 7 months ago
fix #2301
The reason is that when we set arg[1] = "" first, the lmcf->body_filter_chain will be null https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L633-L646
arg[1] = ""
lmcf->body_filter_chain
https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L668-L700
Then we can't set the right end flag https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L526-L549
The ci error seems it has nothing to do with my changes
@zhuizhuhaomeng @spacewander please help to review
fix #2301
The reason is that when we set
arg[1] = ""
first, thelmcf->body_filter_chain
will be null https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L633-L646https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L668-L700
Then we can't set the right end flag https://github.com/openresty/lua-nginx-module/blob/master/src/ngx_http_lua_bodyfilterby.c#L526-L549