HSTS: make llcache update policy on 3xx responses

This commit is contained in:
John-Mark Bell 2018-04-22 04:25:35 +00:00
parent ec1936cc93
commit 103c015784
1 changed files with 2 additions and 0 deletions

View File

@ -1981,6 +1981,8 @@ static nserror llcache_fetch_redirect(llcache_object *object,
/* And mark it complete */
object->fetch.state = LLCACHE_FETCH_COMPLETE;
(void) llcache_hsts_update_policy(object);
/* Forcibly stop redirecting if we've followed too many redirects */
#define REDIRECT_LIMIT 10
if (object->fetch.redirect_count > REDIRECT_LIMIT) {