diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-07-02 16:36:59 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-07-02 16:36:59 +0300 |
commit | 145d895430e5634bca2a83377fc19da557f9ae5c (patch) | |
tree | cca68a3db234b98e93c4d99ed7be92154d12a2ba | |
parent | 313da403a545340dc7404458deed0398ddd33366 (diff) | |
download | unit-145d895430e5634bca2a83377fc19da557f9ae5c.tar.gz unit-145d895430e5634bca2a83377fc19da557f9ae5c.tar.bz2 |
Controller: fixed handling of zero Content-Length.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |