From 683ddf4866915678d4b32ea57257371ab3495318 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 2 Sep 2009 07:02:49 +0000 Subject: [PATCH] discrease slightly ngx_http_parse_header_line() size: this line is not required for LF, however, this case is very seldom --- src/http/ngx_http_parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index c1fba529d..9865564e5 100644 --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -739,11 +739,11 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, /* first char */ case sw_start: + r->header_name_start = p; r->invalid_header = 0; switch (ch) { case CR: - r->header_name_start = p; r->header_end = p; state = sw_header_almost_done; break; @@ -752,7 +752,6 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b, goto header_done; default: state = sw_name; - r->header_name_start = p; c = lowcase[ch];