private function updateHostFromUri()
    {
        $host = $this->uri->getHost();

        if ($host == '') {
            return;
        }

        if (($port = $this->uri->getPort()) !== null) {
            $host .= ':' . $port;
        }

        $this->setHeader('Host', $host);
    }
private function updateHostFromUri()
    {
        $host = $this->uri->getHost();

        if ($host == '') {
            return;
        }

        if (($port = $this->uri->getPort()) !== null) {
            $host .= ':' . $port;
        }

        $this->setHeader('Host', $host);
    }
private function updateHostFromUri ( ) { $ host = $ this -> uri -> getHost ( ) ; if ( $ host == '' ) { return ; } if ( ( $ port = $ this -> uri -> getPort ( ) ) !== null ) { $ host .= ':' . $ port ; } $ this -> setHeader ( 'Host' , $ host ) ; }
Update the current Host header based on the current Uri
Update the current Host header based on the current Uri