diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-09-02 07:02:49 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-02 07:02:49 +0000 |
commit | 63494b4c798c983ce95a7db8dec4c4c86b55b81f (patch) | |
tree | d0abd30531f719c51d4664c23e68d83d1dae0b82 /src/http/ngx_http_parse.c | |
parent | 21e3e05eb12145f4f8cd2f83456959328117ffc2 (diff) | |
download | nginx-63494b4c798c983ce95a7db8dec4c4c86b55b81f.tar.gz nginx-63494b4c798c983ce95a7db8dec4c4c86b55b81f.zip |
discrease slightly ngx_http_parse_header_line() size:
this line is not required for LF, however, this case is very seldom
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r-- | src/http/ngx_http_parse.c | 3 |
1 files changed, 1 insertions, 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]; |