]> git.kaiwu.me - nginx.git/commitdiff
Status: the "last_in_chain" flag must be set.
authorValentin Bartenev <vbart@nginx.com>
Wed, 5 Jun 2013 12:22:40 +0000 (16:22 +0400)
committerValentin Bartenev <vbart@nginx.com>
Wed, 5 Jun 2013 12:22:40 +0000 (16:22 +0400)
The module always produces only one and obviously the last buffer in chain.

src/http/modules/ngx_http_stub_status_module.c

index 83a35cda8147da871fe2c4d1403592a8097139ad..fe9132df841a785c5a4d2ec5c9a7be4a355585b8 100644 (file)
@@ -145,6 +145,7 @@ static ngx_int_t ngx_http_status_handler(ngx_http_request_t *r)
     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);