PMC-541-A

This commit is contained in:
Roly Rudy Gutierrez Pinto
2019-03-18 15:44:43 -04:00
parent bc39876669
commit d5de59d73a

View File

@@ -1534,7 +1534,8 @@ class System
*/
public static function getServerProtocol()
{
return G::is_https() ? "https://" : "http://";
$envProtocol = defined("REQUEST_SCHEME") && REQUEST_SCHEME === "https";
return G::is_https() || $envProtocol ? "https://" : "http://";
}
/**