mirror of
https://github.com/nginx/nginx.git
synced 2025-07-22 20:38:26 +08:00
HTTP: Do not allow header lines with no colon
RFC9112 does not permit them.
This commit is contained in:
parent
98d266924f
commit
dab8c0e762
@ -956,13 +956,6 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
||||
break;
|
||||
}
|
||||
|
||||
if (ch == LF) {
|
||||
r->header_name_end = p;
|
||||
r->header_start = p;
|
||||
r->header_end = p;
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (!ngx_http_non_alnum_dash_header_char(ch)) {
|
||||
r->header_end = p;
|
||||
return NGX_HTTP_PARSE_INVALID_HEADER;
|
||||
|
Loading…
Reference in New Issue
Block a user