Bug in request.headers_out initialization?

Igor Sysoev igor at sysoev.ru
Wed Nov 23 16:50:48 UTC 2011

On Wed, Nov 23, 2011 at 10:16:56PM +0530, Fasihullah Askiri wrote:
> Thanks for the prompt reply.
> That makes it a lot clearer, is hash = 1 used to indicate that the
> lowcase_key isnt initialized (meaning you shouldnt try to look it up the
> headers_in_hash) or any other value like 0 is also used?

> I basically need the lowcase headers, I am just reusing the key, am I good
> with just checking for 1 or should I do something else? [I want to use the
> available value instead of re-evaluating]

No, zero/non-zero hash is used in src/http/ngx_http_header_filter_module.c
to skip/pass headers to a client.

Igor Sysoev

More information about the nginx-devel mailing list