Explorar o código

[HttpFoundation] fixed getScheme() method

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

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

@@ -408,7 +408,7 @@ class Request
 
     public function getScheme()
     {
-        return ($this->server->get('HTTPS') == 'on') ? 'https' : 'http';
+        return $this->isSecure() ? 'https' : 'http';
     }
 
     public function getPort()