changeset 1142:e479e0b02e5a

fix "zero size buf" if request body file is multiple of 32K and FastCGI is used
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 Mar 2007 13:30:24 +0000
parents 2b16d3959c2b
children c6c42497106c
files src/http/modules/ngx_http_fastcgi_module.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -723,7 +723,7 @@ ngx_http_fastcgi_create_request(ngx_http
                     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 @@ ngx_http_fastcgi_create_request(ngx_http
                     b->pos = pos;
                     pos += 32 * 1024;
 
-                    if (pos > body->buf->last) {
+                    if (pos >= body->buf->last) {
                         pos = body->buf->last;
                         next = 1;
                     }