]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also allow empty value for no-HTTPS.
authorMitar <mitar.git@tnode.com>
Fri, 27 Nov 2015 09:01:56 +0000 (01:01 -0800)
committerMitar <mitar.git@tnode.com>
Fri, 27 Nov 2015 09:01:56 +0000 (01:01 -0800)
This makes it work better with old version of Nginx.

lib/private/appframework/http/request.php

index ea42c9a89672c4f9fd97d6fdcbe06b4ddd8b4570..2bbb70db0f82e2a67936f51bf69a9e98bddaffbb 100644 (file)
@@ -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';
                }