Mercurial > hg > nginx
changeset 2971:87ddbe960172
fix ngx_http_send_special() for subrequests handled by perl
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Jul 2009 13:32:51 +0000 |
parents | 40af8afab5a5 |
children | c5ad288f851d |
files | src/http/ngx_http_request.c src/http/ngx_http_upstream.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c Thu Jul 09 13:20:51 2009 +0000 +++ b/src/http/ngx_http_request.c Thu Jul 09 13:32:51 2009 +0000 @@ -2694,7 +2694,13 @@ } if (flags & NGX_HTTP_LAST) { - b->last_buf = 1; + + if (r == r->main && !r->post_action) { + b->last_buf = 1; + + } else { + b->last_in_chain = 1; + } } if (flags & NGX_HTTP_FLUSH) {
--- a/src/http/ngx_http_upstream.c Thu Jul 09 13:20:51 2009 +0000 +++ b/src/http/ngx_http_upstream.c Thu Jul 09 13:32:51 2009 +0000 @@ -2888,7 +2888,7 @@ r->connection->log->action = "sending to client"; - if (rc == 0 && r == r->main && !r->post_action) { + if (rc == 0) { rc = ngx_http_send_special(r, NGX_HTTP_LAST); }