Hi,
I'm setting the ngx variable inside content by lua block but the updated value is not available outside.
set $varEx ' '
content_by_lua_block {
ngx.var.varEx = "someNewValue"
}
proxy_set_header $xxx $varEx
proxy_pass
I want to use the updated value to pass as header before proxy_pass.
Same is working with capture, but the api response is large. So have to avoid capture.
Please suggest.
Thanks.