summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 04:25:35 +0000
committerJohn-Mark Bell <jmb@netsurf-browser.org>2018-04-22 11:39:12 +0000
commit103c015784a73e86b120e2e26b3906c6787209ef (patch)
tree06c308d177619499646c1c472db31e472f69a353 /content
parentec1936cc93f2f2f40d26a2913e31952e6ed24d77 (diff)
downloadnetsurf-103c015784a73e86b120e2e26b3906c6787209ef.tar.gz
netsurf-103c015784a73e86b120e2e26b3906c6787209ef.tar.bz2
HSTS: make llcache update policy on 3xx responses
Diffstat (limited to 'content')
-rw-r--r--content/llcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/llcache.c b/content/llcache.c
index bb61236a3..29b42a1c0 100644
--- a/content/llcache.c
+++ b/content/llcache.c
@@ -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) {