r2371 merge:

allow POST without Content-Length
This commit is contained in:
Igor Sysoev 2009-04-01 16:01:01 +00:00
parent b98820ddc2
commit 4a84f30a82
1 changed files with 1 additions and 3 deletions

View File

@ -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);