diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-10-30 20:25:22 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-30 20:25:22 +0000 |
| commit | 020ffea637440e4283e1be11a96ded2674fdf8a0 (patch) | |
| tree | 104bb79a9ab4beb5631863002894cfa019b2b27f /src/http/modules | |
| parent | d0427afb8bf06149f2dadad118e5f30cbd7f3cff (diff) | |
| download | nginx-020ffea637440e4283e1be11a96ded2674fdf8a0.tar.gz nginx-020ffea637440e4283e1be11a96ded2674fdf8a0.tar.bz2 | |
high level HTTP buffered flags should be on per-subrequest basis,
this fix a bug in SSI when a big static file is included
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_ssi_filter_module.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index dc0249867..1ee34db00 100644 --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -973,6 +973,13 @@ ngx_http_ssi_output(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx) } } + if (ctx->in || ctx->buf) { + r->buffered |= NGX_HTTP_SSI_BUFFERED; + + } else { + r->buffered &= ~NGX_HTTP_SSI_BUFFERED; + } + return rc; } |
