]> git.kaiwu.me - nginx.git/commit
Cache: status must be less then 599 in *_cache_valid directives.
authorGena Makhomed <gmm@csdoc.com>
Mon, 24 Sep 2018 17:26:46 +0000 (20:26 +0300)
committerGena Makhomed <gmm@csdoc.com>
Mon, 24 Sep 2018 17:26:46 +0000 (20:26 +0300)
commit1065455289d72b140f9e63a420b531eaae2d4039
treecf23c29201ffa1ee5f811480e77d0ce40ff46e1d
parent8117b3f5a06b68afb292ddd19bf6ee6000707232
Cache: status must be less then 599 in *_cache_valid directives.

Previously, configurations with typo, for example

    fastcgi_cache_valid 200301 302 5m;

successfully pass configuration test. Adding check for status
codes > 599, and such configurations are now properly rejected.
src/http/ngx_http_file_cache.c