summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Core/Http/Request.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Core/Http/Request.php b/app/Core/Http/Request.php
index 1b3036d5..7f1399e6 100644
--- a/app/Core/Http/Request.php
+++ b/app/Core/Http/Request.php
@@ -211,7 +211,11 @@ class Request extends Base
*/
public function isHTTPS()
{
- return isset($this->server['HTTPS']) && $this->server['HTTPS'] !== '' && $this->server['HTTPS'] !== 'off';
+ if ($this->getServerVariable('HTTP_X_FORWARDED_PROTO') === 'https') {
+ return true;
+ }
+
+ return $this->getServerVariable('HTTPS') !== '' && $this->server['HTTPS'] !== 'off';
}
/**