From bc0fa40b24f73ccce067f2d23e9aae1335c46694 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 8 Sep 2014 16:49:54 +0200 Subject: Fix bug HTTPS detection (issue with IIS) --- app/Core/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Core/Response.php') diff --git a/app/Core/Response.php b/app/Core/Response.php index 1ccf9f5e..347cdde7 100644 --- a/app/Core/Response.php +++ b/app/Core/Response.php @@ -246,7 +246,7 @@ class Response */ public function hsts() { - if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') { + if (Tool::isHTTPS()) { header('Strict-Transport-Security: max-age=31536000'); } } -- cgit v1.2.3