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 Oct 31, 2021
1 parent 8b9bfae commit b6cc7b2
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 ($this->getServer('HTTPS') == 'on') || $this->getServer('HTTP_X_FORWARDED_PROTO') == 'https' ?
return (strtolower($this->getServer('HTTPS')) == 'on') || $this->getServer('HTTP_X_FORWARDED_PROTO') == 'https' ?
self::SCHEME_HTTPS :
self::SCHEME_HTTP;
}
Expand Down

0 comments on commit b6cc7b2

Please sign in to comment.