Mercurial > hg > nginx
changeset 7968:5354bf552520 stable-1.20
Fixed $content_length cacheability with chunked (ticket #2252).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 06 Oct 2021 18:01:42 +0300 |
parents | 5de6a960632e |
children | 84c60a3cd12a |
files | src/http/ngx_http_variables.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c Tue Aug 31 17:54:54 2021 +0300 +++ b/src/http/ngx_http_variables.c Wed Oct 06 18:01:42 2021 +0300 @@ -1179,6 +1179,10 @@ v->no_cacheable = 0; v->not_found = 0; + } else if (r->headers_in.chunked) { + v->not_found = 1; + v->no_cacheable = 1; + } else { v->not_found = 1; }