]> git.kaiwu.me - nginx.git/commitdiff
fix <!--#include virtual=... wait="yes" -->
authorIgor Sysoev <igor@sysoev.ru>
Wed, 11 Oct 2006 09:12:01 +0000 (09:12 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 11 Oct 2006 09:12:01 +0000 (09:12 +0000)
r759 did not fix the bug

src/http/modules/ngx_http_ssi_filter_module.c

index dc0cb74fb49ba3da53d9477b90a13339f9f2aa8c..5e7bc1eb114b94a2791204149f032b1bc4b6bd3b 100644 (file)
@@ -411,17 +411,16 @@ ngx_http_ssi_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
     }
 
     if (ctx->wait) {
-        if (r->connection->data != r) {
+        if (ctx->wait != r) {
             ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                            "http ssi filter \"%V\" wait", &r->uri);
             return NGX_AGAIN;
         }
 
-        if (ctx->wait == r) {
-            ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                           "http ssi filter \"%V\" continue", &r->uri);
-            ctx->wait = NULL;
-        }
+        ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
+                       "http ssi filter \"%V\" continue", &r->uri);
+
+        ctx->wait = NULL;
     }
 
     slcf = ngx_http_get_module_loc_conf(r, ngx_http_ssi_filter_module);