mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 13:49:05 +08:00
use the more correct mask
This commit is contained in:
parent
a616ef77e2
commit
8c8a6e5f2f
@ -775,7 +775,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
|
|||||||
if (c) {
|
if (c) {
|
||||||
hash = ngx_hash(hash, c);
|
hash = ngx_hash(hash, c);
|
||||||
r->lowcase_header[i++] = c;
|
r->lowcase_header[i++] = c;
|
||||||
i &= ~NGX_HTTP_LC_HEADER_LEN;
|
i &= (NGX_HTTP_LC_HEADER_LEN - 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user