diff src/http/ngx_http_request.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 5acd98486a33
children c96960a4b42c
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2694,7 +2694,13 @@ ngx_http_send_special(ngx_http_request_t
     }
 
     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) {