mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 08:57:03 +03:00
Nextcloud Cannot modify header information
https://github.com/the-djmaze/snappymail/issues/929#issuecomment-1582552784
This commit is contained in:
parent
fc6a58fd5d
commit
43d885b922
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ if (empty($_SERVER['HTTPS']) || 'off' === $_SERVER['HTTPS']) {
|
||||||
if (isset($_SERVER['REQUEST_SCHEME']) && 'https' === $_SERVER['REQUEST_SCHEME']) {
|
if (isset($_SERVER['REQUEST_SCHEME']) && 'https' === $_SERVER['REQUEST_SCHEME']) {
|
||||||
$_SERVER['HTTPS'] = 'on';
|
$_SERVER['HTTPS'] = 'on';
|
||||||
}
|
}
|
||||||
if (isset($_SERVER['HTTPS'])) {
|
if (isset($_SERVER['HTTPS']) && !headers_sent()) {
|
||||||
header('Strict-Transport-Security: max-age=31536000');
|
header('Strict-Transport-Security: max-age=31536000');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue