Commit e2b2383
committed
Fix CA/CRL refresh retriggering every run on 304
When the server responds with 304 Not Modified, ca_last_update and
crl_last_update were not updated. Since these read the mtime of the
CA cert / CRL file on disk, the stale timestamp caused needs_refresh?
to return true on every subsequent run, ignoring ca_refresh_interval
and crl_refresh_interval.
Fix by updating the timestamp on 304 so the interval is respected.1 parent acd591a commit e2b2383
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| |||
0 commit comments