diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 16:49:54 +0200 |
commit | bc0fa40b24f73ccce067f2d23e9aae1335c46694 (patch) | |
tree | fbb29773ce539428caed617738db2ccd4bf59df3 /app/Core/Response.php | |
parent | 532ea3b8685cb141526fbcd2cd3dd13667452783 (diff) |
Fix bug HTTPS detection (issue with IIS)
Diffstat (limited to 'app/Core/Response.php')
-rw-r--r-- | app/Core/Response.php | 2 |
1 files changed, 1 insertions, 1 deletions
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'); } } |