about summary refs log tree commit diff stats
path: root/xombrero.c
diff options
context:
space:
mode:
Diffstat (limited to 'xombrero.c')
-rw-r--r--xombrero.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xombrero.c b/xombrero.c
index d3555fa..c84dd88 100644
--- a/xombrero.c
+++ b/xombrero.c
@@ -4770,6 +4770,12 @@ session_rq_cb(SoupSession *s, SoupMessage *msg, SoupSocket *socket,
 	if (s == NULL || msg == NULL)
 		return;
 
+	if (enable_strict_transport) {
+		soup_message_add_header_handler(msg, "finished",
+		    "Strict-Transport-Security",
+		    G_CALLBACK(strict_transport_security_cb), NULL);
+	}
+
 	if (referer_mode == XT_REFERER_ALWAYS)
 		return;
 
@@ -4820,12 +4826,6 @@ session_rq_cb(SoupSession *s, SoupMessage *msg, SoupSocket *socket,
 			break;
 		}
 	}
-
-	if (enable_strict_transport) {
-		soup_message_add_header_handler(msg, "finished",
-		    "Strict-Transport-Security",
-		    G_CALLBACK(strict_transport_security_cb), NULL);
-	}
 }
 
 int