Bug in request.headers_out initialization?

Fasih faskiri.devel at gmail.com
Thu Nov 24 09:54:15 UTC 2011


No problem at all, helped me understand the software a little more :)

On Thu, Nov 24, 2011 at 1:48 PM, Igor Sysoev <igor at sysoev.ru> wrote:

> 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.
>
>
> --
> Igor Sysoev
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20111124/f5ae1a80/attachment.html>


More information about the nginx-devel mailing list