fix "zero size buf" if request body file is multiple of 32K and FastCGI is used
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 34b87f7..c6159af 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -723,7 +723,7 @@ b->file_pos = file_pos; file_pos += 32 * 1024; - if (file_pos > body->buf->file_last) { + if (file_pos >= body->buf->file_last) { file_pos = body->buf->file_last; next = 1; } @@ -735,7 +735,7 @@ b->pos = pos; pos += 32 * 1024; - if (pos > body->buf->last) { + if (pos >= body->buf->last) { pos = body->buf->last; next = 1; }