that error msg is:
" attempt to set ngx.header.HEADER after sending out response headers while sending to client"
but now I know that we can define our new attributes on header_filter_by_lua but now I can't change it inside body_filter_by_lua!
also I can't solve it using this link:
https://stackoverflow.com/questions/45356766/how-to-change-content-length-in-body-filter-by-lua-in-openresty?rq=1
On Wednesday, April 25, 2018 at 10:25:26 AM UTC+4:30, Hadi Abbasi wrote:
hello there
I need to set new attribute or change the value of last attribute on response header inside body_filter_by_lua but it throws me an error and says:
try to set (or change) property after sending body and ...
I don't know how can I change or add new attribute on body_filter_by_lua (at a special state inside body_filter_by_lua),
thanks a lot...