Hi...
I'm trying to make a proxy server using openresty and my Simplified code is:
server {
location / {
...
}
location @proxyPass {
..
..
header_filter_by_lua_block {
ngx.print("transfer-encoding: " .. (ngx.resp.get_headers()["Transfer-Encoding"] or "Empty")) -- Output : transfer-encoding: Empty
}
}
}
so I don't know why it's empty and how can I access transfer-encoding from header filter by lua!
please help me because it's important challenge for me..
thanks a lot..
Best,