summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-11-27 14:24:23 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-11-27 14:24:23 +0100
commitbdbefe17d6ae2d41d990db7bf4c905ff4f40b46b (patch)
tree3d3e3339f12e6c322ec5d5b503fc705253f165eb /lib
parentdf4bd322b20009b50b9cdb8897cf5295732147ae (diff)
parente0e51fd79fded941ce307e3b937e5f634b4e0550 (diff)
downloadnextcloud-server-bdbefe17d6ae2d41d990db7bf4c905ff4f40b46b.tar.gz
nextcloud-server-bdbefe17d6ae2d41d990db7bf4c905ff4f40b46b.zip
Merge pull request #20782 from mitar/better-https
Also allow empty value for no-HTTPS
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';
}