Hello!
On Sat, Apr 12, 2014 at 4:50 PM, marco wrote:
> I'm trying to read the response headers in the log_by_lua filter. I've been
> unsuccessfully trying to read the "ngx.header" variable in order to do so.
> What is the best practice for this?
>
Reading ngx.header.HEADER should work in the context of log_by_lua.
The corresponding test case is passing for me:
https://github.com/chaoslawful/lua-nginx-module/blob/master/t/075-logby.t#L569
If it does not work for you, please provide a minimal and complete
test case that can reproduce the issue on my side :)
Thanks!
-agentzh