aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-11-03 11:22:07 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-11-03 11:22:07 +0300
commitbbd05ae252bce1907173d13c6e48d1bed71cd9ea (patch)
tree6bca56a91f1d0a0b1c3ad4ac0d3c3ba2b4122468 /src/http/ngx_http_variables.c
parent8f8cb92e9229d75ea5816f35c6b4bfdfb253a486 (diff)
parent3334585539168947650a37d74dd32973ab451d70 (diff)
downloadnginx-bbd05ae252bce1907173d13c6e48d1bed71cd9ea.tar.gz
nginx-bbd05ae252bce1907173d13c6e48d1bed71cd9ea.zip
Merged with the default branch.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index c25d80ccf..942dacd70 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1179,6 +1179,10 @@ ngx_http_variable_content_length(ngx_http_request_t *r,
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;
}