Bug in request.headers_out initialization?
igor at sysoev.ru
Thu Nov 24 08:18:54 UTC 2011
On Thu, Nov 24, 2011 at 10:36:11AM +0530, Fasih wrote:
> Hi Igor
> Really thankful for your patience with me. I think I now understood what
> you are saying :).
> To summarize, header.hash == 0 is used as a flag
> in ngx_http_header_filter_module.c:http_header_filter to test whether to
> send the header downstream or not. Setting it to 1(or anything non-zero) is
> to ensure that the header is sent downstream.
> Since headers_out is not used by nginx core to do hash lookups, it doesnt
> calculate hash or lowcase_key, however modules like proxy or fastcgi use
> the hash value for their own benefit in which case they ensure that the
> hash/lowcase_key is initialized.
> I hope I got it right this time.
Yes. Sorry, I could not explain it from the very start.
More information about the nginx-devel