diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-06-04 10:27:00 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-06-04 10:27:00 +0000 |
| commit | 1ba48195d7aa84ff6f130720cf2314b74cc75823 (patch) | |
| tree | d074df5c4f7bb09ac3e7adb7e919c46fda115899 /src/http/modules/ngx_http_stub_status_module.c | |
| parent | 5f291006a65d7a7dbcfbb5d315f04eaf3917d868 (diff) | |
| download | nginx-1ba48195d7aa84ff6f130720cf2314b74cc75823.tar.gz nginx-1ba48195d7aa84ff6f130720cf2314b74cc75823.tar.bz2 | |
Merge of r4612: proper subrequest handling in various modules.
Diffstat (limited to 'src/http/modules/ngx_http_stub_status_module.c')
| -rw-r--r-- | src/http/modules/ngx_http_stub_status_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_stub_status_module.c b/src/http/modules/ngx_http_stub_status_module.c index f78086981..96abe928a 100644 --- 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(ngx_http_request_t *r) 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); |
