Warning: Non-standard capitalization of includeSubDomains

Header contains the token . The recommended capitalization is .

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-09-19 10:03:44 +02:00
parent 16751d7446
commit 58835ef81f
3 changed files with 3 additions and 3 deletions

View File

@@ -840,7 +840,7 @@ class apache extends HttpConfigBase
$vhost_content .= ' <IfModule mod_headers.c>' . "\n"; $vhost_content .= ' <IfModule mod_headers.c>' . "\n";
$vhost_content .= ' Header always set Strict-Transport-Security "max-age=' . $domain['hsts']; $vhost_content .= ' Header always set Strict-Transport-Security "max-age=' . $domain['hsts'];
if ($domain['hsts_sub'] == 1) { if ($domain['hsts_sub'] == 1) {
$vhost_content .= '; includeSubdomains'; $vhost_content .= '; includeSubDomains';
} }
if ($domain['hsts_preload'] == 1) { if ($domain['hsts_preload'] == 1) {
$vhost_content .= '; preload'; $vhost_content .= '; preload';

View File

@@ -523,7 +523,7 @@ class lighttpd extends HttpConfigBase
$vhost_content .= '$HTTP["scheme"] == "https" { setenv.add-response-header = ( "Strict-Transport-Security" => "max-age=' . $domain['hsts']; $vhost_content .= '$HTTP["scheme"] == "https" { setenv.add-response-header = ( "Strict-Transport-Security" => "max-age=' . $domain['hsts'];
if ($domain['hsts_sub'] == 1) { if ($domain['hsts_sub'] == 1) {
$vhost_content .= '; includeSubdomains'; $vhost_content .= '; includeSubDomains';
} }
if ($domain['hsts_preload'] == 1) { if ($domain['hsts_preload'] == 1) {
$vhost_content .= '; preload'; $vhost_content .= '; preload';

View File

@@ -631,7 +631,7 @@ class nginx extends HttpConfigBase {
if (isset($domain_or_ip['hsts']) && $domain_or_ip['hsts'] > 0) { if (isset($domain_or_ip['hsts']) && $domain_or_ip['hsts'] > 0) {
$vhost_content .= 'add_header Strict-Transport-Security "max-age=' . $domain_or_ip['hsts']; $vhost_content .= 'add_header Strict-Transport-Security "max-age=' . $domain_or_ip['hsts'];
if ($domain_or_ip['hsts_sub'] == 1) { if ($domain_or_ip['hsts_sub'] == 1) {
$vhost_content .= '; includeSubdomains'; $vhost_content .= '; includeSubDomains';
} }
if ($domain_or_ip['hsts_preload'] == 1) { if ($domain_or_ip['hsts_preload'] == 1) {
$vhost_content .= '; preload'; $vhost_content .= '; preload';