diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-11-14 13:15:08 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-11-14 13:15:08 +0000 |
commit | ae5db1d400b64da9d7a47b65b0af43688571f22f (patch) | |
tree | d5328601b4b25ae5b9bdbd13382563116b80f192 | |
parent | 58364233a6de999aa3a92103c3fc81b85335bb9e (diff) | |
download | nginx-ae5db1d400b64da9d7a47b65b0af43688571f22f.tar.gz nginx-ae5db1d400b64da9d7a47b65b0af43688571f22f.zip |
fix add_before_body without add_after_body
-rw-r--r-- | src/http/modules/ngx_http_addition_filter_module.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_addition_filter_module.c b/src/http/modules/ngx_http_addition_filter_module.c index 26517147c..c05aefde4 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 @@ ngx_http_addition_body_filter(ngx_http_request_t *r, ngx_chain_t *in) } } + 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) { |