diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:04:31 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-08 14:04:31 +0000 |
commit | 5bf20874628dc74fb31211b20aa3cb16d15dd520 (patch) | |
tree | 343201f4f8cdff03b39a8693cf65363c7d125fb3 /src/http/ngx_http_request.c | |
parent | 0e32306bab352f8d7855e07188d6e305944240d9 (diff) | |
download | nginx-5bf20874628dc74fb31211b20aa3cb16d15dd520.tar.gz nginx-5bf20874628dc74fb31211b20aa3cb16d15dd520.zip |
allow POST without Content-Length
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |