comparison src/http/ngx_http_parse.c @ 370:9a242235a80a NGINX_0_6_29

nginx 0.6.29 *) Feature: the ngx_google_perftools_module. *) Bugfix: the ngx_http_perl_module could be not built on 64-bit platforms; bug appeared in 0.6.27.
author Igor Sysoev <http://sysoev.ru>
date Tue, 18 Mar 2008 00:00:00 +0300
parents b743d290eb3b
children 09b703ae3ba5
comparison
equal deleted inserted replaced
369:5906b8639a07 370:9a242235a80a
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;
880 break; 880 break;
881 881
882 /* end of header line */ 882 /* end of header line */
883 case sw_almost_done: 883 case sw_almost_done:
884 switch (ch) { 884 switch (ch) {
885 case LF:
886 goto done;
885 case CR: 887 case CR:
886 break; 888 break;
887 case LF:
888 goto done;
889 default: 889 default:
890 return NGX_HTTP_PARSE_INVALID_HEADER; 890 return NGX_HTTP_PARSE_INVALID_HEADER;
891 } 891 }
892 break; 892 break;
893 893