Mercurial > hg > nginx
changeset 2641:3a79007edf41 stable-0.6
r2371 merge:
allow POST without Content-Length
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 01 Apr 2009 16:01:01 +0000 |
parents | a69e3766f698 |
children | 976e000dbb9f |
files | src/http/ngx_http_request.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Wed Apr 01 15:58:21 2009 +0000 +++ b/src/http/ngx_http_request.c Wed Apr 01 16:01:01 2009 +0000 @@ -1388,9 +1388,7 @@ } } - 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);