]> git.mxchange.org Git - friendica.git/blobdiff - src/App/Page.php
Fix phpcbf style errors in part of code I didn't change
[friendica.git] / src / App / Page.php
index a91d400ee88057d99b220f7e5a7f257b7e0c2b95..e226252124fed000336299b23c859ccbdb48217f 100644 (file)
@@ -523,7 +523,7 @@ class Page implements ArrayAccess
                header("X-Friendica-Version: " . App::VERSION);
                header("Content-type: text/html; charset=utf-8");
 
-               if ($config->get('system', 'hsts') && ($baseURL->getSSLPolicy() == BaseURL::SSL_POLICY_FULL)) {
+               if ($config->get('system', 'hsts') && ($baseURL->getScheme() === 'https')) {
                        header("Strict-Transport-Security: max-age=31536000");
                }