[HttpFoundation] fixed getScheme() method

This commit is contained in:
Fabien Potencier 2011-04-20 10:49:08 +02:00
parent eca195c8fe
commit d993a9160a

View File

@ -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()