comparison src/http/modules/ngx_http_addition_filter_module.c @ 645:4946078f0a79 release-0.3.44

nginx-0.3.44-RELEASE import *) Feature: the "wait" parameter in the "include" SSI command. *) Feature: the Ukrainian and Byelorussian characters were added to koi-win conversion table. *) Bugfix: in the SSI.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 04 May 2006 15:32:46 +0000
parents 5d2b8078c1c2
children 63a820b0bc6c
comparison
equal deleted inserted replaced
644:610ff734a8cc 645:4946078f0a79
141 141
142 if (!ctx->before_body_sent) { 142 if (!ctx->before_body_sent) {
143 ctx->before_body_sent = 1; 143 ctx->before_body_sent = 1;
144 144
145 if (conf->before_body.len) { 145 if (conf->before_body.len) {
146 if (ngx_http_subrequest(r, &conf->before_body, NULL, 0) != NGX_OK) { 146 if (ngx_http_subrequest(r, &conf->before_body, NULL, 0)
147 == NGX_ERROR)
148 {
147 return NGX_ERROR; 149 return NGX_ERROR;
148 } 150 }
149 } 151 }
150 } 152 }
151 153
163 165
164 if (rc == NGX_ERROR || !last || conf->after_body.len == 0) { 166 if (rc == NGX_ERROR || !last || conf->after_body.len == 0) {
165 return rc; 167 return rc;
166 } 168 }
167 169
168 if (ngx_http_subrequest(r, &conf->after_body, NULL, 0) != NGX_OK) { 170 if (ngx_http_subrequest(r, &conf->after_body, NULL, 0) == NGX_ERROR) {
169 return NGX_ERROR; 171 return NGX_ERROR;
170 } 172 }
171 173
172 ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module); 174 ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module);
173 175