aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-10-17 12:47:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-10-17 12:47:14 +0000
commitbb8bbb7c0bfe2171c52318435deaece357a95c0c (patch)
treee450fbf8abc317f6dc304bd06da67d16e545933c /src
parentadfd14529b5ab28167d159680eda3be3c4f83957 (diff)
downloadnginx-bb8bbb7c0bfe2171c52318435deaece357a95c0c.tar.gz
nginx-bb8bbb7c0bfe2171c52318435deaece357a95c0c.zip
backout r783 and add comment
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c
index b5e2359b6..bbda9ecd8 100644
--- a/src/http/ngx_http_parse.c
+++ b/src/http/ngx_http_parse.c
@@ -537,6 +537,8 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
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 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
"\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;