]> git.kaiwu.me - nginx.git/commitdiff
backout r783 and add comment
authorIgor Sysoev <igor@sysoev.ru>
Tue, 17 Oct 2006 12:47:14 +0000 (12:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 17 Oct 2006 12:47:14 +0000 (12:47 +0000)
src/http/ngx_http_parse.c

index b5e2359b69436476e33d4ce068bed2568e25f54d..bbda9ecd8c741322026d810805dbc8e097091454 100644 (file)
@@ -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;