summaryrefslogtreecommitdiff
path: root/app/Core/Response.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Response.php')
-rw-r--r--app/Core/Response.php2
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');
}
}