|
|
|
@ -99,7 +99,7 @@ class Request {
|
|
|
|
|
|
|
|
|
|
public function getHost()
|
|
|
|
|
{
|
|
|
|
|
$host = $this->getScheme() . '://' . $this->serverInfo['SERVER_NAME'];
|
|
|
|
|
$host = $this->getScheme() . '://' . $this->serverInfo['HTTP_HOST'];
|
|
|
|
|
if (in_array($this->serverInfo['SERVER_PORT'], [80, 443])) {
|
|
|
|
|
return $host;
|
|
|
|
|
}
|
|
|
|
|