aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_stub_status_module.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-06-05 16:22:40 +0400
committerValentin Bartenev <vbart@nginx.com>2013-06-05 16:22:40 +0400
commitf6650479c30d26b82187bfe0a343a4c92eb9a81a (patch)
tree82f184e72d0a5b0ce4e7191f32f5814c57413faf /src/http/modules/ngx_http_stub_status_module.c
parentba4b4991d18aef821086488e0b93a23df8b26039 (diff)
downloadnginx-f6650479c30d26b82187bfe0a343a4c92eb9a81a.tar.gz
nginx-f6650479c30d26b82187bfe0a343a4c92eb9a81a.zip
Status: the "last_in_chain" flag must be set.
The module always produces only one and obviously the last buffer in chain.
Diffstat (limited to 'src/http/modules/ngx_http_stub_status_module.c')
-rw-r--r--src/http/modules/ngx_http_stub_status_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c
index 83a35cda8..fe9132df8 100644
--- 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(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);