From 59511d97ee4a93dd34bd56e0607f18d71edd7a9c Mon Sep 17 00:00:00 2001 From: Mitar Date: Fri, 27 Nov 2015 01:01:56 -0800 Subject: [PATCH] Also allow empty value for no-HTTPS. This makes it work better with old version of Nginx. --- lib/private/appframework/http/request.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'; } -- 2.39.5