Mercurial > hg > nginx
comparison src/http/ngx_http_variables.c @ 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 | 6d4f7d5e279f |
children | 08b3ea81ff5f |
comparison
equal
deleted
inserted
replaced
7967:5de6a960632e | 7968:5354bf552520 |
---|---|
1177 v->data = p; | 1177 v->data = p; |
1178 v->valid = 1; | 1178 v->valid = 1; |
1179 v->no_cacheable = 0; | 1179 v->no_cacheable = 0; |
1180 v->not_found = 0; | 1180 v->not_found = 0; |
1181 | 1181 |
1182 } else if (r->headers_in.chunked) { | |
1183 v->not_found = 1; | |
1184 v->no_cacheable = 1; | |
1185 | |
1182 } else { | 1186 } else { |
1183 v->not_found = 1; | 1187 v->not_found = 1; |
1184 } | 1188 } |
1185 | 1189 |
1186 return NGX_OK; | 1190 return NGX_OK; |