mirror of
https://github.com/nginx/nginx.git
synced 2025-07-24 14:16:20 +08:00
HTTP: Do not allow multiple CRs before LF
This is not permitted by RFC9112.
This commit is contained in:
parent
dab8c0e762
commit
e30ddb7a3b
@ -1040,8 +1040,6 @@ ngx_http_parse_header_line(ngx_http_request_t *r, ngx_buf_t *b,
|
||||
switch (ch) {
|
||||
case LF:
|
||||
goto done;
|
||||
case CR:
|
||||
break;
|
||||
default:
|
||||
return NGX_HTTP_PARSE_INVALID_HEADER;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user