mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Fixed $content_length cacheability with chunked (ticket #2252).
This commit is contained in:
parent
9b2488b2c3
commit
3a87278882
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue