changeset 765:4cb8f85c085d

fix <!--#include virtual=... wait="yes" --> r759 did not fix the bug
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Oct 2006 09:12:01 +0000
parents 761a94247118
children 791ea37bc944
files src/http/modules/ngx_http_ssi_filter_module.c
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/modules/ngx_http_ssi_filter_module.c
+++ b/src/http/modules/ngx_http_ssi_filter_module.c
@@ -411,17 +411,16 @@ ngx_http_ssi_body_filter(ngx_http_reques
     }
 
     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);