comparison src/http/modules/ngx_http_addition_filter_module.c @ 846:c2cae54f2045

fix add_before_body without add_after_body
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Nov 2006 13:15:08 +0000
parents 4ab852b691f5
children 28a8e9b9e8f9
comparison
equal deleted inserted replaced
845:eb5cf273e5d2 846:c2cae54f2045
150 return rc; 150 return rc;
151 } 151 }
152 } 152 }
153 } 153 }
154 154
155 if (conf->after_body.len == 0) {
156 ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module);
157 return ngx_http_next_body_filter(r, in);
158 }
159
155 last = 0; 160 last = 0;
156 161
157 for (cl = in; cl; cl = cl->next) { 162 for (cl = in; cl; cl = cl->next) {
158 if (cl->buf->last_buf) { 163 if (cl->buf->last_buf) {
159 cl->buf->last_buf = 0; 164 cl->buf->last_buf = 0;