summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_parse.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2018-01-09 16:50:47 +0300
committerValentin Bartenev <vbart@nginx.com>2018-01-09 16:50:47 +0300
commite8aada94de284384d6cc9a3e580ef61ed80f4471 (patch)
tree494591f030870a113b952aee77eee258a1313f58 /src/nxt_http_parse.c
parentc85c9dc7a8783c1f3d976d7870d02e29b34aaf98 (diff)
downloadunit-e8aada94de284384d6cc9a3e580ef61ed80f4471.tar.gz
unit-e8aada94de284384d6cc9a3e580ef61ed80f4471.tar.bz2
HTTP parser: allowing underscore in header field names.
Diffstat (limited to 'src/nxt_http_parse.c')
-rw-r--r--src/nxt_http_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_parse.c b/src/nxt_http_parse.c
index 17bd0657..65eed934 100644
--- a/src/nxt_http_parse.c
+++ b/src/nxt_http_parse.c
@@ -509,7 +509,7 @@ nxt_http_parse_field_name(nxt_http_request_parse_t *rp, u_char **pos,
"\0\0\0\0\0\0\0\0\0\0\0\0\0-\0\0" "0123456789\0\0\0\0\0\0"
/* These 64 bytes should reside in one cache line. */
- "\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"