summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-01 16:01:01 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-01 16:01:01 +0000
commitebb8d120d592158ffb1fdcbf1ff61c6778f3dc5e (patch)
treea965fe5b942e19241d0ab46c5fbe6b119231f437
parentc7bd98abaad56d7afff438afb06fe69013a03be2 (diff)
downloadnginx-ebb8d120d592158ffb1fdcbf1ff61c6778f3dc5e.tar.gz
r2371 merge:
allow POST without Content-Length
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index ed48a6efe..deb283404 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -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);