Hello!
On Mon, Aug 11, 2014 at 6:19 PM, Jon Keys wrote:
> I'm attempting to capture response headers using `ngx.resp.get_headers()`
> inside a `body_filter_by_lua_file`.
> I'm unable to get the `Content-Type` (among other "standard headers like
> Transfer-Encoding, Connection, etc...). If I set an `X-Content-Type` in the
> same place I set the `Content-Type` header I can get access to it with no
> issue.
For the ngx.resp.get_headers() API function, special support for these
builtin headers are added on user demand due to performance
considerations.
I've just added support for Content-Type, Content-Length, Connection,
and Transfer-Encoding to ngx.resp.get_headers() in the git repos:
https://github.com/openresty/lua-nginx-module/commit/e0cd3ccf
Regards,
-agentzh