mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
fix ngx_http_send_special() for subrequests handled by perl
This commit is contained in:
parent
f8f9fc2f1a
commit
2e9542b910
@ -2694,7 +2694,13 @@ ngx_http_send_special(ngx_http_request_t *r, ngx_uint_t flags)
|
||||
}
|
||||
|
||||
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) {
|
||||
|
@ -2888,7 +2888,7 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user