HTTP/3: disabled control characters and space in header names.

This is a follow up to 41f4bd4c51f1.
This commit is contained in:
Sergey Kandaurov 2021-08-10 12:35:12 +03:00
parent e1fbbfaba6
commit 6fb9bdad6a

View File

@ -428,7 +428,7 @@ ngx_http_v3_validate_header(ngx_http_request_t *r, ngx_str_t *name,
continue;
}
if (ch == '\0' || ch == LF || ch == CR || ch == ':'
if (ch <= 0x20 || ch == 0x7f || ch == ':'
|| (ch >= 'A' && ch <= 'Z'))
{
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,