Skip to content

Commit

Permalink
We do not need protocol anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
sasanrose committed Feb 17, 2017
1 parent 6b15857 commit 61b1733
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libraries/router.php
Expand Up @@ -29,10 +29,6 @@ public static function instance()
protected function parse()
{
$this->method = $_SERVER['REQUEST_METHOD'];
$this->protocol = (
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] !== 'off')
|| (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
) ? 'https' : 'http';
$this->host = $_SERVER['HTTP_HOST'];
$this->baseUrl = '//'.$this->host;
$this->url = '//'.$this->host.$_SERVER['SCRIPT_NAME'];
Expand Down

0 comments on commit 61b1733

Please sign in to comment.