# HG changeset patch # User Igor Sysoev # Date 1205674189 0 # Node ID 2546677dae0b7babf9a2cc0c10a842a8164c76d4 # Parent 0e7deac300f1c05988739cb64845361517aac2c5 use the more correct mask diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -775,7 +775,7 @@ ngx_http_parse_header_line(ngx_http_requ 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; }