discrease slightly ngx_http_parse_header_line() size:

this line is not required for LF, however, this case is very seldom
This commit is contained in:
Igor Sysoev 2009-09-02 07:02:49 +00:00
parent 36d8fd81b9
commit 683ddf4866

View file

@ -739,11 +739,11 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
/* first char */ /* first char */
case sw_start: case sw_start:
r->header_name_start = p;
r->invalid_header = 0; r->invalid_header = 0;
switch (ch) { switch (ch) {
case CR: case CR:
r->header_name_start = p;
r->header_end = p; r->header_end = p;
state = sw_header_almost_done; state = sw_header_almost_done;
break; break;
@ -752,7 +752,6 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
goto header_done; goto header_done;
default: default:
state = sw_name; state = sw_name;
r->header_name_start = p;
c = lowcase[ch]; c = lowcase[ch];