]> git.kaiwu.me - nginx.git/commit
Cache: reset c->body_start when reading a variant on Vary mismatch.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 4 Aug 2017 16:37:37 +0000 (19:37 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 4 Aug 2017 16:37:37 +0000 (19:37 +0300)
commited0b19cdd4a9118cf8795ba2cf0a56684624bb41
tree969ed72d2dc5e2e5c0d85c80dc8596d16ad9de64
parentb1274232db13e97c159272bf916366fca0c9feee
Cache: reset c->body_start when reading a variant on Vary mismatch.

Previously, a variant not present in shared memory and stored on disk using a
secondary key was read using c->body_start from a variant stored with a main
key.  This could result in critical errors "cache file .. has too long header".
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c