Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_addition_filter_module.c @ 248:acd2ec3541cb NGINX_0_4_9
nginx 0.4.9
*) Feature: the "set" parameter in the "include" SSI command.
*) Feature: the ngx_http_perl_module now tests the nginx.pm module
version.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 13 Oct 2006 00:00:00 +0400 |
parents | 500a3242dff6 |
children | 2e9c57a5e50a |
comparison
equal
deleted
inserted
replaced
247:fcca101509a4 | 248:acd2ec3541cb |
---|---|
142 | 142 |
143 if (!ctx->before_body_sent) { | 143 if (!ctx->before_body_sent) { |
144 ctx->before_body_sent = 1; | 144 ctx->before_body_sent = 1; |
145 | 145 |
146 if (conf->before_body.len) { | 146 if (conf->before_body.len) { |
147 if (ngx_http_subrequest(r, &conf->before_body, NULL, &sr, NULL, 0) | 147 rc = ngx_http_subrequest(r, &conf->before_body, NULL, &sr, NULL, 0); |
148 == NGX_ERROR) | 148 |
149 { | 149 if (rc == NGX_ERROR || rc == NGX_DONE) { |
150 return NGX_ERROR; | 150 return rc; |
151 } | 151 } |
152 } | 152 } |
153 } | 153 } |
154 | 154 |
155 last = 0; | 155 last = 0; |
166 | 166 |
167 if (rc == NGX_ERROR || !last || conf->after_body.len == 0) { | 167 if (rc == NGX_ERROR || !last || conf->after_body.len == 0) { |
168 return rc; | 168 return rc; |
169 } | 169 } |
170 | 170 |
171 if (ngx_http_subrequest(r, &conf->after_body, NULL, &sr, NULL, 0) | 171 rc = ngx_http_subrequest(r, &conf->after_body, NULL, &sr, NULL, 0); |
172 == NGX_ERROR) | 172 |
173 { | 173 if (rc == NGX_ERROR || rc == NGX_DONE) { |
174 return NGX_ERROR; | 174 return rc; |
175 } | 175 } |
176 | 176 |
177 ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module); | 177 ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module); |
178 | 178 |
179 return ngx_http_send_special(r, NGX_HTTP_LAST); | 179 return ngx_http_send_special(r, NGX_HTTP_LAST); |