scheme checking for webservers without $_SERVER['HTTPS']
This commit is contained in:
parent
2785bb413e
commit
511d8a30a0
7
boot.php
7
boot.php
|
@ -286,7 +286,12 @@ class App {
|
||||||
|
|
||||||
startup();
|
startup();
|
||||||
|
|
||||||
$this->scheme = ((isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'])) ? 'https' : 'http' );
|
$this->scheme = 'http';
|
||||||
|
if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS'])
|
||||||
|
$this->scheme = 'https';
|
||||||
|
elseif(x($_SERVER,'SERVER_PORT') && (intval($_SERVER['SERVER_PORT']) == 443))
|
||||||
|
$this->scheme = 'https';
|
||||||
|
|
||||||
|
|
||||||
if(x($_SERVER,'SERVER_NAME')) {
|
if(x($_SERVER,'SERVER_NAME')) {
|
||||||
$this->hostname = $_SERVER['SERVER_NAME'];
|
$this->hostname = $_SERVER['SERVER_NAME'];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user