fix "zero size buf" if request body file is multiple of 32K and FastCGI is used
Igor Sysoev
15 years ago
722 | 722 | b->file_pos = file_pos; |
723 | 723 | file_pos += 32 * 1024; |
724 | 724 | |
725 | if (file_pos > body->buf->file_last) { | |
725 | if (file_pos >= body->buf->file_last) { | |
726 | 726 | file_pos = body->buf->file_last; |
727 | 727 | next = 1; |
728 | 728 | } |
734 | 734 | b->pos = pos; |
735 | 735 | pos += 32 * 1024; |
736 | 736 | |
737 | if (pos > body->buf->last) { | |
737 | if (pos >= body->buf->last) { | |
738 | 738 | pos = body->buf->last; |
739 | 739 | next = 1; |
740 | 740 | } |