diff options
Diffstat (limited to 'src/http/modules/ngx_http_chunked_filter_module.c')
-rw-r--r-- | src/http/modules/ngx_http_chunked_filter_module.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_chunked_filter_module.c b/src/http/modules/ngx_http_chunked_filter_module.c index 6581e5904..4e02194c0 100644 --- a/src/http/modules/ngx_http_chunked_filter_module.c +++ b/src/http/modules/ngx_http_chunked_filter_module.c @@ -95,8 +95,11 @@ ngx_http_chunked_body_filter(ngx_http_request_t *r, ngx_chain_t *in) size += ngx_buf_size(cl->buf); - if (cl->buf->flush || ngx_buf_in_memory(cl->buf) || cl->buf->in_file) { - + if (cl->buf->flush + || cl->buf->sync + || ngx_buf_in_memory(cl->buf) + || cl->buf->in_file) + { tl = ngx_alloc_chain_link(r->pool); if (tl == NULL) { return NGX_ERROR; |