allow POST without Content-Length
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index ab4c0e0..9962767 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1411,9 +1411,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);