]> git.kaiwu.me - nginx.git/commitdiff
ssi did work with memcached and nonbuffered responses
authorIgor Sysoev <igor@sysoev.ru>
Sat, 23 Sep 2006 15:55:54 +0000 (15:55 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sat, 23 Sep 2006 15:55:54 +0000 (15:55 +0000)
src/http/modules/ngx_http_ssi_filter_module.c

index 5045fd696a65627de3b87de7c0636e24a5231a0d..8faf14c7207402404acd3dfb6026908d5b408a64 100644 (file)
@@ -843,7 +843,7 @@ ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
             continue;
         }
 
-        if (ctx->buf->last_buf || ctx->buf->recycled) {
+        if (ctx->buf->last_buf || ngx_buf_in_memory(ctx->buf)) {
             if (b == NULL) {
                 if (ctx->free) {
                     cl = ctx->free;