aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/oer/endpoints.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-30 06:57:51 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-30 06:57:51 +0000
commitcb11393661f5cdf9a1ddacb8cd9602de70f5b8f9 (patch)
treea1d34239ca3973ebb9f3b0797d3a8841f0fdec48 /app/controllers/oer/endpoints.php
parentb506b133d371742ef23b3a22cc1c6bb20c860d40 (diff)
fixes #4221issue-4232
Closes #4221 Merge request studip/studip!3064
Diffstat (limited to 'app/controllers/oer/endpoints.php')
-rw-r--r--app/controllers/oer/endpoints.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/oer/endpoints.php b/app/controllers/oer/endpoints.php
index 9a0f3f5..1ce9626 100644
--- a/app/controllers/oer/endpoints.php
+++ b/app/controllers/oer/endpoints.php
@@ -374,7 +374,7 @@ class Oer_EndpointsController extends StudipController
header("Expires: Mon, 12 Dec 2001 08:00:00 GMT");
header("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
- if ($_SERVER['HTTPS'] == "on") {
+ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {
header("Pragma: public");
header("Cache-Control: private");
} else {