mirror of
https://github.com/nginx/nginx.git
synced 2024-11-24 04:49:01 +08:00
Removed "Transfer-Encoding: identity" support.
The "identity" transfer coding has been removed in RFC 7230. It is believed that it is not used in real life, and at the same time it provides a potential attack vector.
This commit is contained in:
parent
e64d798edb
commit
b4d6b70d7f
@ -1952,10 +1952,7 @@ ngx_http_process_request_header(ngx_http_request_t *r)
|
||||
r->headers_in.content_length_n = -1;
|
||||
r->headers_in.chunked = 1;
|
||||
|
||||
} else if (r->headers_in.transfer_encoding->value.len != 8
|
||||
|| ngx_strncasecmp(r->headers_in.transfer_encoding->value.data,
|
||||
(u_char *) "identity", 8) != 0)
|
||||
{
|
||||
} else {
|
||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||
"client sent unknown \"Transfer-Encoding\": \"%V\"",
|
||||
&r->headers_in.transfer_encoding->value);
|
||||
|
Loading…
Reference in New Issue
Block a user