Mercurial > hg > nginx
comparison src/http/modules/ngx_http_range_filter_module.c @ 6722:6136a51f9c21
Do not set last_buf flag in subrequests.
The last_buf flag should only be set in the last buffer of the main request.
Otherwise, several last_buf flags can appear in output. This can, for example,
break the chunked filter, which will include several final chunks in output.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 03 Oct 2016 20:48:51 +0300 |
parents | f01ab2dbcfdc |
children | 2decd6b34306 |
comparison
equal
deleted
inserted
replaced
6721:48bab8b83f4e | 6722:6136a51f9c21 |
---|---|
748 | 748 |
749 if (ngx_buf_in_memory(buf)) { | 749 if (ngx_buf_in_memory(buf)) { |
750 buf->last -= (size_t) (last - range->end); | 750 buf->last -= (size_t) (last - range->end); |
751 } | 751 } |
752 | 752 |
753 buf->last_buf = 1; | 753 buf->last_buf = (r == r->main) ? 1 : 0; |
754 buf->last_in_chain = 1; | |
754 *ll = cl; | 755 *ll = cl; |
755 cl->next = NULL; | 756 cl->next = NULL; |
756 | 757 |
757 break; | 758 break; |
758 } | 759 } |