commit | 7f0c363ca00995a79f95f8e2095d2921eaa9ce45 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Wed Oct 06 18:01:42 2021 +0300 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Wed Oct 06 18:01:42 2021 +0300 |
tree | 973167bff663f80997550d25095460717400b3e1 | |
parent | 517de5a9ff52a51ea773fb3b48e78b7df3d06672 [diff] |
Fixed $content_length cacheability with chunked (ticket #2252).
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index c25d80c..942dacd 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c
@@ -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; }