Also allow empty value for no-HTTPS.
This makes it work better with old version of Nginx.
This commit is contained in:
parent
9722935043
commit
59511d97ee
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue