changeset 1942:2546677dae0b

use the more correct mask
author Igor Sysoev <igor@sysoev.ru>
date Sun, 16 Mar 2008 13:29:49 +0000
parents 0e7deac300f1
children 5acc8bea2c49
files src/http/ngx_http_parse.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
             }