diff options
author | Andrey Belov <defan@nginx.com> | 2012-04-26 13:06:27 +0000 |
---|---|---|
committer | Andrey Belov <defan@nginx.com> | 2012-04-26 13:06:27 +0000 |
commit | eeec229e3e5c1278dd98d48d96cd6d7063da3974 (patch) | |
tree | 659388b5aaef355471055e27b820e38a2ad8df66 /src | |
parent | 487ba70126ddcde8f889e20617b927c9d716c792 (diff) | |
download | nginx-eeec229e3e5c1278dd98d48d96cd6d7063da3974.tar.gz nginx-eeec229e3e5c1278dd98d48d96cd6d7063da3974.zip |
Allows particular modules to handle subrequests properly.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_flv_module.c | 2 | ||||
-rw-r--r-- | src/http/modules/ngx_http_gzip_static_module.c | 2 | ||||
-rw-r--r-- | src/http/modules/ngx_http_mp4_module.c | 2 | ||||
-rw-r--r-- | src/http/modules/ngx_http_stub_status_module.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_flv_module.c b/src/http/modules/ngx_http_flv_module.c index 719a01124..03a746803 100644 --- a/src/http/modules/ngx_http_flv_module.c +++ b/src/http/modules/ngx_http_flv_module.c @@ -235,7 +235,7 @@ ngx_http_flv_handler(ngx_http_request_t *r) b->file_last = of.size; b->in_file = b->file_last ? 1: 0; - b->last_buf = 1; + b->last_buf = (r == r->main) ? 1 : 0; b->last_in_chain = 1; b->file->fd = of.fd; diff --git a/src/http/modules/ngx_http_gzip_static_module.c b/src/http/modules/ngx_http_gzip_static_module.c index 46ce8f3f3..b0183e0aa 100644 --- a/src/http/modules/ngx_http_gzip_static_module.c +++ b/src/http/modules/ngx_http_gzip_static_module.c @@ -245,7 +245,7 @@ ngx_http_gzip_static_handler(ngx_http_request_t *r) b->file_last = of.size; b->in_file = b->file_last ? 1 : 0; - b->last_buf = 1; + b->last_buf = (r == r->main) ? 1 : 0; b->last_in_chain = 1; b->file->fd = of.fd; diff --git a/src/http/modules/ngx_http_mp4_module.c b/src/http/modules/ngx_http_mp4_module.c index 433e118a2..2c8cfd171 100644 --- a/src/http/modules/ngx_http_mp4_module.c +++ b/src/http/modules/ngx_http_mp4_module.c @@ -616,7 +616,7 @@ ngx_http_mp4_handler(ngx_http_request_t *r) b->file_last = of.size; b->in_file = b->file_last ? 1 : 0; - b->last_buf = 1; + b->last_buf = (r == r->main) ? 1 : 0; b->last_in_chain = 1; b->file->fd = of.fd; 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); |