Also allow empty value for no-HTTPS.

This makes it work better with old version of Nginx.
This commit is contained in:
Mitar 2015-11-27 01:01:56 -08:00
parent 9722935043
commit 59511d97ee
1 changed files with 2 additions and 1 deletions

View 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';
}