summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMitar <mitar.git@tnode.com>2015-11-27 01:01:56 -0800
committerMitar <mitar.git@tnode.com>2015-11-27 01:01:56 -0800
commit59511d97ee4a93dd34bd56e0607f18d71edd7a9c (patch)
treed4d73596243ebed8dfc845fc577f01153d9fbc70 /lib
parent97229350433cd23e4bc5ece7e9242991582b87f8 (diff)
downloadnextcloud-server-59511d97ee4a93dd34bd56e0607f18d71edd7a9c.tar.gz
nextcloud-server-59511d97ee4a93dd34bd56e0607f18d71edd7a9c.zip
Also allow empty value for no-HTTPS.
This makes it work better with old version of Nginx.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/appframework/http/request.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/appframework/http/request.php b/lib/private/appframework/http/request.php
index ea42c9a8967..2bbb70db0f8 100644
--- a/lib/private/appframework/http/request.php
+++ b/lib/private/appframework/http/request.php
@@ -541,7 +541,8 @@ class Request implements \ArrayAccess, \Countable, IRequest {
if (isset($this->server['HTTPS'])
&& $this->server['HTTPS'] !== null
- && $this->server['HTTPS'] !== 'off') {
+ && $this->server['HTTPS'] !== 'off'
+ && $this->server['HTTPS'] !== '') {
return 'https';
}