Browse Source

scheme checking for webservers without $_SERVER['HTTPS']

pull/148/head
friendica 9 years ago
parent
commit
511d8a30a0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      boot.php

+ 6
- 1
boot.php View File

@ -286,7 +286,12 @@ class App {
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')) {
$this->hostname = $_SERVER['SERVER_NAME'];


Loading…
Cancel
Save