From: Igor Sysoev Date: Mon, 8 Dec 2008 14:04:31 +0000 (+0000) Subject: allow POST without Content-Length X-Git-Tag: release-0.7.25~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=5bf20874628dc74fb31211b20aa3cb16d15dd520;p=nginx.git allow POST without Content-Length --- diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index ab4c0e08f..996276777 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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);