diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2021-11-03 11:22:07 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-11-03 11:22:07 +0300 |
commit | bbd05ae252bce1907173d13c6e48d1bed71cd9ea (patch) | |
tree | 6bca56a91f1d0a0b1c3ad4ac0d3c3ba2b4122468 /src/http/ngx_http_variables.c | |
parent | 8f8cb92e9229d75ea5816f35c6b4bfdfb253a486 (diff) | |
parent | 3334585539168947650a37d74dd32973ab451d70 (diff) | |
download | nginx-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.c | 4 |
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; } |