Explorar o código

[HttpFoundation] fixed Request::getHttpHost()

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
5a38886b1d
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/Symfony/Component/HttpFoundation/Request.php

+ 1 - 5
src/Symfony/Component/HttpFoundation/Request.php

@@ -468,11 +468,7 @@ class Request
      */
     public function getHttpHost()
     {
-        $host = $this->headers->get('HOST');
-        if (!empty($host)) {
-            return $host;
-        }
-
+        $host   = $this->getHost();
         $scheme = $this->getScheme();
         $name   = $this->server->get('SERVER_NAME');
         $port   = $this->getPort();