mirror of
https://github.com/nginx/nginx.git
synced 2026-07-01 22:32:04 +00:00
r2371 merge:
allow POST without Content-Length
This commit is contained in:
parent
c7bd98abaa
commit
ebb8d120d5
1 changed files with 1 additions and 3 deletions
|
|
@ -1388,9 +1388,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…
Add table
Add a link
Reference in a new issue