use the more correct mask

This commit is contained in:
Igor Sysoev 2008-03-16 13:29:49 +00:00
parent a616ef77e2
commit 8c8a6e5f2f

View File

@ -775,7 +775,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
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;
}