From 145d895430e5634bca2a83377fc19da557f9ae5c Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 2 Jul 2018 16:36:59 +0300 Subject: [PATCH] Controller: fixed handling of zero Content-Length. --- src/nxt_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nxt_controller.c b/src/nxt_controller.c index 099432f1..4b8d009b 100644 --- a/src/nxt_controller.c +++ b/src/nxt_controller.c @@ -769,7 +769,7 @@ nxt_controller_request_content_length(void *ctx, nxt_http_field_t *field, length = nxt_off_t_parse(field->value, field->value_length); - if (nxt_fast_path(length > 0)) { + if (nxt_fast_path(length >= 0)) { if (nxt_slow_path(length > NXT_SIZE_T_MAX)) { nxt_log_error(NXT_LOG_ERR, &r->conn->log,