Pārlūkot izejas kodu

[HttpFoundation] fixed getScheme() method

Fabien Potencier 14 gadi atpakaļ
vecāks
revīzija
d993a9160a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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()