Mercurial > hg > nginx
changeset 786:5dc3ba0d6388
backout r783 and add comment
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Oct 2006 12:47:14 +0000 |
parents | b5b111cc28ed |
children | b310630d129e |
files | src/http/ngx_http_parse.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_parse.c Mon Oct 16 13:59:37 2006 +0000 +++ b/src/http/ngx_http_parse.c Tue Oct 17 12:47:14 2006 +0000 @@ -537,6 +537,8 @@ sw_header_almost_done } state; + /* the last '\0' is not needed because string is zero terminated */ + static u_char lowcase[] = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0-\0\0" "0123456789\0\0\0\0\0\0" @@ -545,7 +547,7 @@ "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" - "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; + "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"; state = r->state; hash = r->header_hash;