Skip to content

Commit

Permalink
Improve getScheme on Zend_Controller_Request_Http
Browse files Browse the repository at this point in the history
  • Loading branch information
mmenozzi committed Feb 16, 2022
1 parent b6cc7b2 commit 55e20e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Zend/Controller/Request/Http.php
Expand Up @@ -1034,7 +1034,7 @@ public function getHeader($header)
*/
public function getScheme()
{
return (strtolower($this->getServer('HTTPS')) == 'on') || $this->getServer('HTTP_X_FORWARDED_PROTO') == 'https' ?
return (strtolower((string)$this->getServer('HTTPS')) == 'on') || $this->getServer('HTTP_X_FORWARDED_PROTO') == 'https' ?
self::SCHEME_HTTPS :
self::SCHEME_HTTP;
}
Expand Down

0 comments on commit 55e20e6

Please sign in to comment.