# HG changeset patch # User Igor Sysoev # Date 1205674189 0 # Node ID 2546677dae0b7babf9a2cc0c10a842a8164c76d4 # Parent 0e7deac300f1c05988739cb64845361517aac2c5 use the more correct mask diff -r 0e7deac300f1 -r 2546677dae0b src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c Fri Mar 14 12:31:20 2008 +0000 +++ b/src/http/ngx_http_parse.c Sun Mar 16 13:29:49 2008 +0000 @@ -775,7 +775,7 @@ if (c) { hash = ngx_hash(hash, c); r->lowcase_header[i++] = c; - i &= ~NGX_HTTP_LC_HEADER_LEN; + i &= (NGX_HTTP_LC_HEADER_LEN - 1); break; }