comparison src/http/modules/ngx_http_stub_status_module.c @ 5243:ee739104d164

Status: the "last_in_chain" flag must be set. The module always produces only one and obviously the last buffer in chain.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 05 Jun 2013 16:22:40 +0400
parents a29c574d61fa
children 2cfc095a607a
comparison
equal deleted inserted replaced
5242:5776804fff04 5243:ee739104d164
143 143
144 r->headers_out.status = NGX_HTTP_OK; 144 r->headers_out.status = NGX_HTTP_OK;
145 r->headers_out.content_length_n = b->last - b->pos; 145 r->headers_out.content_length_n = b->last - b->pos;
146 146
147 b->last_buf = (r == r->main) ? 1 : 0; 147 b->last_buf = (r == r->main) ? 1 : 0;
148 b->last_in_chain = 1;
148 149
149 rc = ngx_http_send_header(r); 150 rc = ngx_http_send_header(r);
150 151
151 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) { 152 if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
152 return rc; 153 return rc;