mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
allow POST without Content-Length
This commit is contained in:
parent
0e32306bab
commit
5bf2087462
@ -1411,9 +1411,7 @@ ngx_http_process_request_header(ngx_http_request_t *r)
|
||||
}
|
||||
}
|
||||
|
||||
if (r->method & (NGX_HTTP_POST|NGX_HTTP_PUT)
|
||||
&& r->headers_in.content_length_n == -1)
|
||||
{
|
||||
if (r->method & NGX_HTTP_PUT && r->headers_in.content_length_n == -1) {
|
||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||
"client sent %V method without \"Content-Length\" header",
|
||||
&r->method_name);
|
||||
|
Loading…
Reference in New Issue
Block a user