diff src/http/modules/ngx_http_stub_status_module.c @ 4659:f12d474f0d5e stable-1.2

Merge of r4612: proper subrequest handling in various modules.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 04 Jun 2012 10:27:00 +0000
parents d620f497c50f
children 1c472e3b8c10
line wrap: on
line diff
--- a/src/http/modules/ngx_http_stub_status_module.c
+++ b/src/http/modules/ngx_http_stub_status_module.c
@@ -121,7 +121,7 @@ static ngx_int_t ngx_http_status_handler
     r->headers_out.status = NGX_HTTP_OK;
     r->headers_out.content_length_n = b->last - b->pos;
 
-    b->last_buf = 1;
+    b->last_buf = (r == r->main) ? 1 : 0;
 
     rc = ngx_http_send_header(r);