comparison src/http/ngx_http_parse.c @ 1942:2546677dae0b

use the more correct mask
author Igor Sysoev <igor@sysoev.ru>
date Sun, 16 Mar 2008 13:29:49 +0000
parents e8cef87413a0
children 5acc8bea2c49
comparison
equal deleted inserted replaced
1941:0e7deac300f1 1942:2546677dae0b
773 c = lowcase[ch]; 773 c = lowcase[ch];
774 774
775 if (c) { 775 if (c) {
776 hash = ngx_hash(hash, c); 776 hash = ngx_hash(hash, c);
777 r->lowcase_header[i++] = c; 777 r->lowcase_header[i++] = c;
778 i &= ~NGX_HTTP_LC_HEADER_LEN; 778 i &= (NGX_HTTP_LC_HEADER_LEN - 1);
779 break; 779 break;
780 } 780 }
781 781
782 if (ch == ':') { 782 if (ch == ':') {
783 r->header_name_end = p; 783 r->header_name_end = p;