diff src/http/ngx_http_upstream.c @ 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 b4f39842523b
children b630e7d095b3
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2888,7 +2888,7 @@ ngx_http_upstream_finalize_request(ngx_h
 
     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);
     }