Mercurial > hg > nginx-vendor-0-6
comparison src/http/modules/ngx_http_addition_filter_module.c @ 194:003bd800ec2a NGINX_0_3_44
nginx 0.3.44
*) 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 <http://sysoev.ru> |
---|---|
date | Thu, 04 May 2006 00:00:00 +0400 |
parents | 4cd3e70c4d60 |
children | fa32d59d9a15 |
comparison
equal
deleted
inserted
replaced
193:2a1394604ae9 | 194:003bd800ec2a |
---|---|
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 |