mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
fix "zero size buf" if request body file is multiple of 32K and FastCGI is used
This commit is contained in:
parent
e7f83eefa2
commit
e47cad4140
@ -723,7 +723,7 @@ ngx_http_fastcgi_create_request(ngx_http_request_t *r)
|
|||||||
b->file_pos = file_pos;
|
b->file_pos = file_pos;
|
||||||
file_pos += 32 * 1024;
|
file_pos += 32 * 1024;
|
||||||
|
|
||||||
if (file_pos > body->buf->file_last) {
|
if (file_pos >= body->buf->file_last) {
|
||||||
file_pos = body->buf->file_last;
|
file_pos = body->buf->file_last;
|
||||||
next = 1;
|
next = 1;
|
||||||
}
|
}
|
||||||
@ -735,7 +735,7 @@ ngx_http_fastcgi_create_request(ngx_http_request_t *r)
|
|||||||
b->pos = pos;
|
b->pos = pos;
|
||||||
pos += 32 * 1024;
|
pos += 32 * 1024;
|
||||||
|
|
||||||
if (pos > body->buf->last) {
|
if (pos >= body->buf->last) {
|
||||||
pos = body->buf->last;
|
pos = body->buf->last;
|
||||||
next = 1;
|
next = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user