# HG changeset patch # User Valentin Bartenev # Date 1370434960 -14400 # Node ID ee739104d164eb2e5d5fee5f2a27b9a4f59fff52 # Parent 5776804fff04d57256709406e0ed632b6e724e9d Status: the "last_in_chain" flag must be set. The module always produces only one and obviously the last buffer in chain. diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c --- a/src/http/modules/ngx_http_stub_status_module.c +++ b/src/http/modules/ngx_http_stub_status_module.c @@ -145,6 +145,7 @@ static ngx_int_t ngx_http_status_handler r->headers_out.content_length_n = b->last - b->pos; b->last_buf = (r == r->main) ? 1 : 0; + b->last_in_chain = 1; rc = ngx_http_send_header(r);