]> git.kaiwu.me - nginx.git/commitdiff
allow underscores in client request header lines
authorIgor Sysoev <igor@sysoev.ru>
Mon, 8 Sep 2008 08:26:42 +0000 (08:26 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 8 Sep 2008 08:26:42 +0000 (08:26 +0000)
src/http/ngx_http_parse.c

index 9777ebb988c5d775bc53e313ae7b63646586425d..2fce7acac87c6c27743ee69163254a1065cc2209 100644 (file)
@@ -720,7 +720,7 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b)
     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"
-        "\0abcdefghijklmnopqrstuvwxyz\0\0\0\0\0"
+        "\0abcdefghijklmnopqrstuvwxyz\0\0\0\0_"
         "\0abcdefghijklmnopqrstuvwxyz\0\0\0\0\0"
         "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
         "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"