Klaus Demo nginx / e47cad4
fix "zero size buf" if request body file is multiple of 32K and FastCGI is used Igor Sysoev 15 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
722722 b->file_pos = file_pos;
723723 file_pos += 32 * 1024;
724724
725 if (file_pos > body->buf->file_last) {
725 if (file_pos >= body->buf->file_last) {
726726 file_pos = body->buf->file_last;
727727 next = 1;
728728 }
734734 b->pos = pos;
735735 pos += 32 * 1024;
736736
737 if (pos > body->buf->last) {
737 if (pos >= body->buf->last) {
738738 pos = body->buf->last;
739739 next = 1;
740740 }