]> git.kaiwu.me - nginx.git/commitdiff
use the more correct mask
authorIgor Sysoev <igor@sysoev.ru>
Sun, 16 Mar 2008 13:29:49 +0000 (13:29 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 16 Mar 2008 13:29:49 +0000 (13:29 +0000)
src/http/ngx_http_parse.c

index b83810d2edd2754b76967c3d38d1950b47ab7845..2e38434b9c94862f19976f14c8d4bd68a6e4b246 100644 (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;
             }