commit | ae5db1d400b64da9d7a47b65b0af43688571f22f | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Tue Nov 14 13:15:08 2006 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Tue Nov 14 13:15:08 2006 +0000 |
tree | d5328601b4b25ae5b9bdbd13382563116b80f192 | |
parent | 58364233a6de999aa3a92103c3fc81b85335bb9e [diff] |
fix add_before_body without add_after_body
diff --git a/src/http/modules/ngx_http_addition_filter_module.c b/src/http/modules/ngx_http_addition_filter_module.c index 2651714..c05aefd 100644 --- a/src/http/modules/ngx_http_addition_filter_module.c +++ b/src/http/modules/ngx_http_addition_filter_module.c
@@ -152,6 +152,11 @@ } } + if (conf->after_body.len == 0) { + ngx_http_set_ctx(r, NULL, ngx_http_addition_filter_module); + return ngx_http_next_body_filter(r, in); + } + last = 0; for (cl = in; cl; cl = cl->next) {