From 5bf20874628dc74fb31211b20aa3cb16d15dd520 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 8 Dec 2008 14:04:31 +0000 Subject: allow POST without Content-Length --- src/http/ngx_http_request.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/http/ngx_http_request.c') 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); -- cgit v1.2.3