mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
fix add_before_body without add_after_body
This commit is contained in:
parent
58364233a6
commit
ae5db1d400
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue