Skip to content
This repository was archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update URL.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Mar 13, 2017
1 parent 8551dfa commit d6b1a61
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Request/URL.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ trait URL
public function isHttps()
{
$https = $this->server('https');

return $this->filterVariable($https, FILTER_VALIDATE_BOOLEAN, false);
$httpX = $this->server('http_x_forwarded_proto');

return
$this->filterVariable($https, FILTER_VALIDATE_BOOLEAN, false) ||
$this->filterVariable($httpX, FILTER_VALIDATE_BOOLEAN, false);
}

/**
Expand Down Expand Up @@ -100,4 +103,4 @@ public function queryString($url = null)
return $query;
}

}
}

0 comments on commit d6b1a61

Please sign in to comment.