diff src/http/ngx_http_postpone_filter_module.c @ 553:45033d85b30e release-0.2.5

nginx-0.2.5-RELEASE import *) Change: the duplicate value of the ngx_http_geo_module variable now causes the warning and changes old value. *) Feature: the ngx_http_ssi_module supports the "set" command. *) Feature: the ngx_http_ssi_module supports the "file" parameter in the "include" command. *) Feature: the ngx_http_ssi_module supports the variable value substitutions in expressions of the "if" command.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 04 Oct 2005 10:38:53 +0000
parents b09ee85d0ac8
children 174f1e853e1e
line wrap: on
line diff
--- a/src/http/ngx_http_postpone_filter_module.c
+++ b/src/http/ngx_http_postpone_filter_module.c
@@ -51,7 +51,6 @@ ngx_http_postpone_filter(ngx_http_reques
 {
     ngx_int_t                      rc;
     ngx_chain_t                   *out;
-    ngx_http_request_t            *mr;
     ngx_http_postponed_request_t  *pr, **ppr;
 
     ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
@@ -110,16 +109,14 @@ ngx_http_postpone_filter(ngx_http_reques
         out = in;
     }
 
-    mr = r->main ? r->main : r;
-
-    if (out == NULL && mr->out == NULL && !mr->connection->buffered) {
+    if (out == NULL && r->main->out == NULL && !r->main->connection->buffered) {
         return NGX_OK;
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
                    "http postpone filter out \"%V\"", &r->uri);
 
-    rc = ngx_http_next_filter(mr, out);
+    rc = ngx_http_next_filter(r->main, out);
 
     if (rc == NGX_ERROR) {
         /* NGX_ERROR may be returned by any filter */